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

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

Issue 913133004: cc: Make PaintedScrollbarLayer not use ContentsScalingLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scale track opaque rect Created 5 years, 10 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 | « no previous file | cc/layers/layer_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_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 #include <vector> 10 #include <vector>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 bool has_mask() const { return mask_layer_; } 192 bool has_mask() const { return mask_layer_; }
193 bool has_replica() const { return replica_layer_; } 193 bool has_replica() const { return replica_layer_; }
194 bool replica_has_mask() const { 194 bool replica_has_mask() const {
195 return replica_layer_ && (mask_layer_ || replica_layer_->mask_layer_); 195 return replica_layer_ && (mask_layer_ || replica_layer_->mask_layer_);
196 } 196 }
197 197
198 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; } 198 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; }
199 199
200 void PopulateSharedQuadState(SharedQuadState* state) const; 200 void PopulateSharedQuadState(SharedQuadState* state) const;
201 void PopulateScaledSharedQuadState(SharedQuadState* state, float scale) const;
201 // WillDraw must be called before AppendQuads. If WillDraw returns false, 202 // WillDraw must be called before AppendQuads. If WillDraw returns false,
202 // AppendQuads and DidDraw will not be called. If WillDraw returns true, 203 // AppendQuads and DidDraw will not be called. If WillDraw returns true,
203 // DidDraw is guaranteed to be called before another WillDraw or before 204 // DidDraw is guaranteed to be called before another WillDraw or before
204 // the layer is destroyed. To enforce this, any class that overrides 205 // the layer is destroyed. To enforce this, any class that overrides
205 // WillDraw/DidDraw must call the base class version only if WillDraw 206 // WillDraw/DidDraw must call the base class version only if WillDraw
206 // returns true. 207 // returns true.
207 virtual bool WillDraw(DrawMode draw_mode, 208 virtual bool WillDraw(DrawMode draw_mode,
208 ResourceProvider* resource_provider); 209 ResourceProvider* resource_provider);
209 virtual void AppendQuads(RenderPass* render_pass, 210 virtual void AppendQuads(RenderPass* render_pass,
210 const Occlusion& occlusion_in_content_space, 211 const Occlusion& occlusion_in_content_space,
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 768
768 std::vector<FrameTimingRequest> frame_timing_requests_; 769 std::vector<FrameTimingRequest> frame_timing_requests_;
769 bool frame_timing_requests_dirty_; 770 bool frame_timing_requests_dirty_;
770 771
771 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 772 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
772 }; 773 };
773 774
774 } // namespace cc 775 } // namespace cc
775 776
776 #endif // CC_LAYERS_LAYER_IMPL_H_ 777 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698