OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |