| 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 <public/WebFilterOperations.h> | 8 #include <public/WebFilterOperations.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 void setHorizontalScrollbarLayer(ScrollbarLayerImpl*); | 274 void setHorizontalScrollbarLayer(ScrollbarLayerImpl*); |
| 275 ScrollbarLayerImpl* horizontalScrollbarLayer(); | 275 ScrollbarLayerImpl* horizontalScrollbarLayer(); |
| 276 const ScrollbarLayerImpl* horizontalScrollbarLayer() const; | 276 const ScrollbarLayerImpl* horizontalScrollbarLayer() const; |
| 277 | 277 |
| 278 void setVerticalScrollbarLayer(ScrollbarLayerImpl*); | 278 void setVerticalScrollbarLayer(ScrollbarLayerImpl*); |
| 279 ScrollbarLayerImpl* verticalScrollbarLayer(); | 279 ScrollbarLayerImpl* verticalScrollbarLayer(); |
| 280 const ScrollbarLayerImpl* verticalScrollbarLayer() const; | 280 const ScrollbarLayerImpl* verticalScrollbarLayer() const; |
| 281 | 281 |
| 282 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; | 282 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; |
| 283 | 283 |
| 284 virtual bool canClipSelf() const { return false; } |
| 285 |
| 284 protected: | 286 protected: |
| 285 LayerImpl(LayerTreeImpl* layerImpl, int); | 287 LayerImpl(LayerTreeImpl* layerImpl, int); |
| 286 | 288 |
| 287 // Get the color and size of the layer's debug border. | 289 // Get the color and size of the layer's debug border. |
| 288 virtual void getDebugBorderProperties(SkColor*, float* width) const; | 290 virtual void getDebugBorderProperties(SkColor*, float* width) const; |
| 289 | 291 |
| 290 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat
a&) const; | 292 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat
a&) const; |
| 291 | 293 |
| 292 virtual void dumpLayerProperties(std::string*, int indent) const; | 294 virtual void dumpLayerProperties(std::string*, int indent) const; |
| 293 static std::string indentString(int indent); | 295 static std::string indentString(int indent); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 // Group of properties that need to be computed based on the layer tree | 400 // Group of properties that need to be computed based on the layer tree |
| 399 // hierarchy before layers can be drawn. | 401 // hierarchy before layers can be drawn. |
| 400 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 402 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
| 401 | 403 |
| 402 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 404 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 403 }; | 405 }; |
| 404 | 406 |
| 405 } | 407 } |
| 406 | 408 |
| 407 #endif // CC_LAYER_IMPL_H_ | 409 #endif // CC_LAYER_IMPL_H_ |
| OLD | NEW |