Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: cc/base/render_surface_filters.h

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/base/region.h ('k') | cc/base/render_surface_filters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5 #ifndef CC_BASE_RENDER_SURFACE_FILTERS_H_
6 #ifndef CC_OUTPUT_RENDER_SURFACE_FILTERS_H_ 6 #define CC_BASE_RENDER_SURFACE_FILTERS_H_
7 #define CC_OUTPUT_RENDER_SURFACE_FILTERS_H_
8 7
9 #include "base/macros.h" 8 #include "base/macros.h"
10 #include "cc/base/cc_export.h" 9 #include "cc/base/base_export.h"
11 #include "third_party/skia/include/core/SkRefCnt.h" 10 #include "third_party/skia/include/core/SkRefCnt.h"
12 #include "ui/gfx/geometry/vector2d_f.h" 11 #include "ui/gfx/geometry/vector2d_f.h"
13 12
14 class GrContext; 13 class GrContext;
15 class SkBitmap; 14 class SkBitmap;
16 class SkImageFilter; 15 class SkImageFilter;
17 16
18 namespace gfx { 17 namespace gfx {
19 class SizeF; 18 class SizeF;
20 } 19 }
21 20
22 namespace cc { 21 namespace cc {
23 22
24 class FilterOperations; 23 class FilterOperations;
25 24
26 class CC_EXPORT RenderSurfaceFilters { 25 class CC_BASE_EXPORT RenderSurfaceFilters {
27 public: 26 public:
28 static SkBitmap Apply(const FilterOperations& filters, 27 static SkBitmap Apply(const FilterOperations& filters,
29 unsigned texture_id, 28 unsigned texture_id,
30 const gfx::SizeF& size, 29 const gfx::SizeF& size,
31 GrContext* gr_context); 30 GrContext* gr_context);
32 static FilterOperations Optimize(const FilterOperations& filters); 31 static FilterOperations Optimize(const FilterOperations& filters);
33 32
34 static sk_sp<SkImageFilter> BuildImageFilter( 33 static sk_sp<SkImageFilter> BuildImageFilter(
35 const FilterOperations& filters, 34 const FilterOperations& filters,
36 const gfx::SizeF& size, 35 const gfx::SizeF& size,
37 const gfx::Vector2dF& offset = gfx::Vector2dF(0, 0)); 36 const gfx::Vector2dF& offset = gfx::Vector2dF(0, 0));
38 37
39 private: 38 private:
40 DISALLOW_IMPLICIT_CONSTRUCTORS(RenderSurfaceFilters); 39 DISALLOW_IMPLICIT_CONSTRUCTORS(RenderSurfaceFilters);
41 }; 40 };
42 41
43 } // namespace cc 42 } // namespace cc
44 43
45 #endif // CC_OUTPUT_RENDER_SURFACE_FILTERS_H_ 44 #endif // CC_BASE_RENDER_SURFACE_FILTERS_H_
OLDNEW
« no previous file with comments | « cc/base/region.h ('k') | cc/base/render_surface_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698