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

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

Issue 271533011: cc: Move tiling management out of draw properties calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP - review comments Created 6 years, 7 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_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 bool has_mask() const { return mask_layer_; } 153 bool has_mask() const { return mask_layer_; }
154 bool has_replica() const { return replica_layer_; } 154 bool has_replica() const { return replica_layer_; }
155 bool replica_has_mask() const { 155 bool replica_has_mask() const {
156 return replica_layer_ && (mask_layer_ || replica_layer_->mask_layer_); 156 return replica_layer_ && (mask_layer_ || replica_layer_->mask_layer_);
157 } 157 }
158 158
159 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; } 159 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; }
160 160
161 void PopulateSharedQuadState(SharedQuadState* state) const; 161 void PopulateSharedQuadState(SharedQuadState* state) const;
162 void UpdateSharedQuadState(SharedQuadState* state,
danakj 2014/05/16 14:49:05 let's name this PopulateSharedQuadStateWithOverrid
163 gfx::Transform target_space_transform,
164 gfx::Size content_bounds,
165 gfx::Rect visible_content_rect) const;
162 // WillDraw must be called before AppendQuads. If WillDraw returns false, 166 // WillDraw must be called before AppendQuads. If WillDraw returns false,
163 // AppendQuads and DidDraw will not be called. If WillDraw returns true, 167 // AppendQuads and DidDraw will not be called. If WillDraw returns true,
164 // DidDraw is guaranteed to be called before another WillDraw or before 168 // DidDraw is guaranteed to be called before another WillDraw or before
165 // the layer is destroyed. To enforce this, any class that overrides 169 // the layer is destroyed. To enforce this, any class that overrides
166 // WillDraw/DidDraw must call the base class version only if WillDraw 170 // WillDraw/DidDraw must call the base class version only if WillDraw
167 // returns true. 171 // returns true.
168 virtual bool WillDraw(DrawMode draw_mode, 172 virtual bool WillDraw(DrawMode draw_mode,
169 ResourceProvider* resource_provider); 173 ResourceProvider* resource_provider);
170 virtual void AppendQuads(QuadSink* quad_sink, 174 virtual void AppendQuads(QuadSink* quad_sink,
171 AppendQuadsData* append_quads_data) {} 175 AppendQuadsData* append_quads_data) {}
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 DrawProperties<LayerImpl> draw_properties_; 689 DrawProperties<LayerImpl> draw_properties_;
686 690
687 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 691 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
688 692
689 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 693 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
690 }; 694 };
691 695
692 } // namespace cc 696 } // namespace cc
693 697
694 #endif // CC_LAYERS_LAYER_IMPL_H_ 698 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698