GrCustomXfermode.h 575 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright 2015 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef GrCustomXfermode_DEFINED
  8. #define GrCustomXfermode_DEFINED
  9. #include "include/core/SkBlendMode.h"
  10. #include "include/core/SkRefCnt.h"
  11. class GrTexture;
  12. class GrXPFactory;
  13. /**
  14. * Custom Xfer modes are used for blending when the blend mode cannot be represented using blend
  15. * coefficients.
  16. */
  17. namespace GrCustomXfermode {
  18. bool IsSupportedMode(SkBlendMode mode);
  19. const GrXPFactory* Get(SkBlendMode mode);
  20. };
  21. #endif