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

Side by Side Diff: cc/layer_impl.h

Issue 11567034: Changes subtreeShouldRenderToSeparateSurface logic to account for explicit clipping (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: very minor change Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer.cc ('k') | cc/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_LAYER_IMPL_H_ 5 #ifndef CC_LAYER_IMPL_H_
6 #define CC_LAYER_IMPL_H_ 6 #define CC_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 void setHorizontalScrollbarLayer(ScrollbarLayerImpl*); 281 void setHorizontalScrollbarLayer(ScrollbarLayerImpl*);
282 ScrollbarLayerImpl* horizontalScrollbarLayer(); 282 ScrollbarLayerImpl* horizontalScrollbarLayer();
283 const ScrollbarLayerImpl* horizontalScrollbarLayer() const; 283 const ScrollbarLayerImpl* horizontalScrollbarLayer() const;
284 284
285 void setVerticalScrollbarLayer(ScrollbarLayerImpl*); 285 void setVerticalScrollbarLayer(ScrollbarLayerImpl*);
286 ScrollbarLayerImpl* verticalScrollbarLayer(); 286 ScrollbarLayerImpl* verticalScrollbarLayer();
287 const ScrollbarLayerImpl* verticalScrollbarLayer() const; 287 const ScrollbarLayerImpl* verticalScrollbarLayer() const;
288 288
289 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; 289 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
290 290
291 virtual bool canClipSelf() const;
292
291 protected: 293 protected:
292 LayerImpl(LayerTreeImpl* layerImpl, int); 294 LayerImpl(LayerTreeImpl* layerImpl, int);
293 295
294 // Get the color and size of the layer's debug border. 296 // Get the color and size of the layer's debug border.
295 virtual void getDebugBorderProperties(SkColor*, float* width) const; 297 virtual void getDebugBorderProperties(SkColor*, float* width) const;
296 298
297 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat a&) const; 299 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat a&) const;
298 300
299 virtual void dumpLayerProperties(std::string*, int indent) const; 301 virtual void dumpLayerProperties(std::string*, int indent) const;
300 static std::string indentString(int indent); 302 static std::string indentString(int indent);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Group of properties that need to be computed based on the layer tree 407 // Group of properties that need to be computed based on the layer tree
406 // hierarchy before layers can be drawn. 408 // hierarchy before layers can be drawn.
407 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 409 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
408 410
409 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 411 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
410 }; 412 };
411 413
412 } 414 }
413 415
414 #endif // CC_LAYER_IMPL_H_ 416 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698