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

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

Issue 2423483003: cc: Make visible rect computation aware of pixel-moving filters (Closed)
Patch Set: Rebaseline Created 4 years, 1 month 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 AppendQuadsData* append_quads_data, 156 AppendQuadsData* append_quads_data,
157 RenderPassId render_pass_id); 157 RenderPassId render_pass_id);
158 158
159 int TransformTreeIndex() const; 159 int TransformTreeIndex() const;
160 int ClipTreeIndex() const; 160 int ClipTreeIndex() const;
161 int EffectTreeIndex() const; 161 int EffectTreeIndex() const;
162 162
163 private: 163 private:
164 void SetContentRect(const gfx::Rect& content_rect); 164 void SetContentRect(const gfx::Rect& content_rect);
165 gfx::Rect CalculateClippedAccumulatedContentRect(); 165 gfx::Rect CalculateClippedAccumulatedContentRect();
166 gfx::Rect CalculateExpandedClipForFilters(
167 const gfx::Transform& target_to_surface);
166 168
167 const EffectNode* OwningEffectNode() const; 169 const EffectNode* OwningEffectNode() const;
168 170
169 LayerImpl* owning_layer_; 171 LayerImpl* owning_layer_;
170 172
171 // Container for properties that render surfaces need to compute before they 173 // Container for properties that render surfaces need to compute before they
172 // can be drawn. 174 // can be drawn.
173 struct DrawProperties { 175 struct DrawProperties {
174 DrawProperties(); 176 DrawProperties();
175 ~DrawProperties(); 177 ~DrawProperties();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 int target_render_surface_layer_index_history_; 216 int target_render_surface_layer_index_history_;
215 size_t current_layer_index_history_; 217 size_t current_layer_index_history_;
216 218
217 friend class LayerIterator; 219 friend class LayerIterator;
218 220
219 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 221 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
220 }; 222 };
221 223
222 } // namespace cc 224 } // namespace cc
223 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 225 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/layers/render_surface_impl.cc » ('j') | cc/trees/clip_node.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698