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

Side by Side Diff: cc/layers/render_surface_impl.h

Issue 23455060: mix-blend-mode implementation for accelerated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_ 5 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_
6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 28 matching lines...) Expand all
39 return gfx::RectF(content_rect_).CenterPoint(); 39 return gfx::RectF(content_rect_).CenterPoint();
40 } 40 }
41 41
42 // Returns the rect that encloses the RenderSurfaceImpl including any 42 // Returns the rect that encloses the RenderSurfaceImpl including any
43 // reflection. 43 // reflection.
44 gfx::RectF DrawableContentRect() const; 44 gfx::RectF DrawableContentRect() const;
45 45
46 void SetDrawOpacity(float opacity) { draw_opacity_ = opacity; } 46 void SetDrawOpacity(float opacity) { draw_opacity_ = opacity; }
47 float draw_opacity() const { return draw_opacity_; } 47 float draw_opacity() const { return draw_opacity_; }
48 48
49 void SetHasBlendMode(bool has_blend_mode) {
50 has_blend_mode_ = has_blend_mode;
51 }
52 bool has_blend_mode() const { return has_blend_mode_; }
53
49 void SetNearestAncestorThatMovesPixels(RenderSurfaceImpl* surface) { 54 void SetNearestAncestorThatMovesPixels(RenderSurfaceImpl* surface) {
50 nearest_ancestor_that_moves_pixels_ = surface; 55 nearest_ancestor_that_moves_pixels_ = surface;
51 } 56 }
52 const RenderSurfaceImpl* nearest_ancestor_that_moves_pixels() const { 57 const RenderSurfaceImpl* nearest_ancestor_that_moves_pixels() const {
53 return nearest_ancestor_that_moves_pixels_; 58 return nearest_ancestor_that_moves_pixels_;
54 } 59 }
55 60
56 void SetDrawOpacityIsAnimating(bool draw_opacity_is_animating) { 61 void SetDrawOpacityIsAnimating(bool draw_opacity_is_animating) {
57 draw_opacity_is_animating_ = draw_opacity_is_animating; 62 draw_opacity_is_animating_ = draw_opacity_is_animating;
58 } 63 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 147
143 private: 148 private:
144 LayerImpl* owning_layer_; 149 LayerImpl* owning_layer_;
145 150
146 // Uses this surface's space. 151 // Uses this surface's space.
147 gfx::Rect content_rect_; 152 gfx::Rect content_rect_;
148 bool surface_property_changed_; 153 bool surface_property_changed_;
149 154
150 float draw_opacity_; 155 float draw_opacity_;
151 bool draw_opacity_is_animating_; 156 bool draw_opacity_is_animating_;
157 bool has_blend_mode_;
152 gfx::Transform draw_transform_; 158 gfx::Transform draw_transform_;
153 gfx::Transform screen_space_transform_; 159 gfx::Transform screen_space_transform_;
154 gfx::Transform replica_draw_transform_; 160 gfx::Transform replica_draw_transform_;
155 gfx::Transform replica_screen_space_transform_; 161 gfx::Transform replica_screen_space_transform_;
156 bool target_surface_transforms_are_animating_; 162 bool target_surface_transforms_are_animating_;
157 bool screen_space_transforms_are_animating_; 163 bool screen_space_transforms_are_animating_;
158 164
159 bool is_clipped_; 165 bool is_clipped_;
160 bool contributes_to_drawn_surface_; 166 bool contributes_to_drawn_surface_;
161 167
(...skipping 15 matching lines...) Expand all
177 int target_render_surface_layer_index_history_; 183 int target_render_surface_layer_index_history_;
178 int current_layer_index_history_; 184 int current_layer_index_history_;
179 185
180 friend struct LayerIteratorActions; 186 friend struct LayerIteratorActions;
181 187
182 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 188 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
183 }; 189 };
184 190
185 } // namespace cc 191 } // namespace cc
186 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 192 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698