| 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 CCTiledLayerImpl_h | 5 #ifndef CCTiledLayerImpl_h |
| 6 #define CCTiledLayerImpl_h | 6 #define CCTiledLayerImpl_h |
| 7 | 7 |
| 8 #include "CCLayerImpl.h" | 8 #include "CCLayerImpl.h" |
| 9 #include <public/WebTransformationMatrix.h> | 9 #include <public/WebTransformationMatrix.h> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 virtual void didLoseContext() OVERRIDE; | 38 virtual void didLoseContext() OVERRIDE; |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 explicit CCTiledLayerImpl(int id); | 41 explicit CCTiledLayerImpl(int id); |
| 42 // Exposed for testing. | 42 // Exposed for testing. |
| 43 bool hasTileAt(int, int) const; | 43 bool hasTileAt(int, int) const; |
| 44 bool hasTextureIdForTileAt(int, int) const; | 44 bool hasTextureIdForTileAt(int, int) const; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 | 47 |
| 48 virtual const char* layerTypeAsString() const OVERRIDE { return "ContentLaye
r"; } | 48 virtual const char* layerTypeAsString() const OVERRIDE; |
| 49 | 49 |
| 50 DrawableTile* tileAt(int, int) const; | 50 DrawableTile* tileAt(int, int) const; |
| 51 DrawableTile* createTile(int, int); | 51 DrawableTile* createTile(int, int); |
| 52 | 52 |
| 53 bool m_skipsDraw; | 53 bool m_skipsDraw; |
| 54 bool m_contentsSwizzled; | 54 bool m_contentsSwizzled; |
| 55 | 55 |
| 56 OwnPtr<CCLayerTilingData> m_tiler; | 56 OwnPtr<CCLayerTilingData> m_tiler; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } | 59 } |
| 60 | 60 |
| 61 #endif // CCTiledLayerImpl_h | 61 #endif // CCTiledLayerImpl_h |
| OLD | NEW |