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_TILED_LAYER_IMPL_H_ | 5 #ifndef CC_TILED_LAYER_IMPL_H_ |
6 #define CC_TILED_LAYER_IMPL_H_ | 6 #define CC_TILED_LAYER_IMPL_H_ |
7 | 7 |
8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
10 #include <public/WebTransformationMatrix.h> | 10 #include <public/WebTransformationMatrix.h> |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 virtual Region visibleContentOpaqueRegion() const OVERRIDE; | 36 virtual Region visibleContentOpaqueRegion() const OVERRIDE; |
37 virtual void didLoseContext() OVERRIDE; | 37 virtual void didLoseContext() OVERRIDE; |
38 | 38 |
39 protected: | 39 protected: |
40 explicit TiledLayerImpl(int id); | 40 explicit TiledLayerImpl(int id); |
41 // Exposed for testing. | 41 // Exposed for testing. |
42 bool hasTileAt(int, int) const; | 42 bool hasTileAt(int, int) const; |
43 bool hasResourceIdForTileAt(int, int) const; | 43 bool hasResourceIdForTileAt(int, int) const; |
44 | 44 |
| 45 virtual void getDebugBorderProperties(SkColor*, float* width) const OVERRIDE
; |
| 46 |
45 private: | 47 private: |
46 | 48 |
47 virtual const char* layerTypeAsString() const OVERRIDE; | 49 virtual const char* layerTypeAsString() const OVERRIDE; |
48 | 50 |
49 DrawableTile* tileAt(int, int) const; | 51 DrawableTile* tileAt(int, int) const; |
50 DrawableTile* createTile(int, int); | 52 DrawableTile* createTile(int, int); |
51 | 53 |
52 bool m_skipsDraw; | 54 bool m_skipsDraw; |
53 | 55 |
54 scoped_ptr<LayerTilingData> m_tiler; | 56 scoped_ptr<LayerTilingData> m_tiler; |
55 }; | 57 }; |
56 | 58 |
57 } | 59 } |
58 | 60 |
59 #endif // CC_TILED_LAYER_IMPL_H_ | 61 #endif // CC_TILED_LAYER_IMPL_H_ |
OLD | NEW |