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

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

Issue 2717533005: cc: RenderSurfaceImpl tile mask layer. (Closed)
Patch Set: Prevent single_texture_mask to multi_texture_mask conversion. Created 3 years, 8 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/layers/picture_layer.cc ('k') | cc/layers/render_surface_impl.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 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void set_effect_tree_index(int index) { effect_tree_index_ = index; } 162 void set_effect_tree_index(int index) { effect_tree_index_ = index; }
163 int EffectTreeIndex() const; 163 int EffectTreeIndex() const;
164 164
165 const EffectNode* OwningEffectNode() const; 165 const EffectNode* OwningEffectNode() const;
166 166
167 private: 167 private:
168 void SetContentRect(const gfx::Rect& content_rect); 168 void SetContentRect(const gfx::Rect& content_rect);
169 gfx::Rect CalculateClippedAccumulatedContentRect(); 169 gfx::Rect CalculateClippedAccumulatedContentRect();
170 gfx::Rect CalculateExpandedClipForFilters( 170 gfx::Rect CalculateExpandedClipForFilters(
171 const gfx::Transform& target_to_surface); 171 const gfx::Transform& target_to_surface);
172 void TileMaskLayer(RenderPass* render_pass,
173 SharedQuadState* shared_quad_state,
174 const gfx::Rect& visible_layer_rect);
172 175
173 LayerTreeImpl* layer_tree_impl_; 176 LayerTreeImpl* layer_tree_impl_;
174 int stable_effect_id_; 177 int stable_effect_id_;
175 int effect_tree_index_; 178 int effect_tree_index_;
176 179
177 // Container for properties that render surfaces need to compute before they 180 // Container for properties that render surfaces need to compute before they
178 // can be drawn. 181 // can be drawn.
179 struct DrawProperties { 182 struct DrawProperties {
180 DrawProperties(); 183 DrawProperties();
181 ~DrawProperties(); 184 ~DrawProperties();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // surface, and that ignores outside occlusion. This can point to itself. 219 // surface, and that ignores outside occlusion. This can point to itself.
217 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; 220 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_;
218 221
219 std::unique_ptr<DamageTracker> damage_tracker_; 222 std::unique_ptr<DamageTracker> damage_tracker_;
220 223
221 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 224 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
222 }; 225 };
223 226
224 } // namespace cc 227 } // namespace cc
225 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 228 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698