render_surface_filters.h 807 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef CC_PAINT_RENDER_SURFACE_FILTERS_H_
  5. #define CC_PAINT_RENDER_SURFACE_FILTERS_H_
  6. #include "cc/paint/paint_export.h"
  7. #include "third_party/skia/include/core/SkRefCnt.h"
  8. #include "ui/gfx/geometry/vector2d_f.h"
  9. namespace gfx {
  10. class SizeF;
  11. }
  12. namespace cc {
  13. class PaintFilter;
  14. class FilterOperations;
  15. class CC_PAINT_EXPORT RenderSurfaceFilters {
  16. public:
  17. RenderSurfaceFilters() = delete;
  18. static sk_sp<PaintFilter> BuildImageFilter(
  19. const FilterOperations& filters,
  20. const gfx::SizeF& size,
  21. const gfx::Vector2dF& offset = gfx::Vector2dF(0, 0));
  22. };
  23. } // namespace cc
  24. #endif // CC_PAINT_RENDER_SURFACE_FILTERS_H_