| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 virtual void appendQuads(CCQuadSink&, CCAppendQuadsData&) OVERRIDE; | 24 virtual void appendQuads(CCQuadSink&, CCAppendQuadsData&) OVERRIDE; |
| 25 | 25 |
| 26 virtual CCResourceProvider::ResourceId contentsResourceId() const OVERRIDE; | 26 virtual CCResourceProvider::ResourceId contentsResourceId() const OVERRIDE; |
| 27 | 27 |
| 28 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; | 28 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; |
| 29 | 29 |
| 30 void setSkipsDraw(bool skipsDraw) { m_skipsDraw = skipsDraw; } | 30 void setSkipsDraw(bool skipsDraw) { m_skipsDraw = skipsDraw; } |
| 31 void setTilingData(const CCLayerTilingData& tiler); | 31 void setTilingData(const CCLayerTilingData& tiler); |
| 32 void pushTileProperties(int, int, CCResourceProvider::ResourceId, const IntR
ect& opaqueRect); | 32 void pushTileProperties(int, int, CCResourceProvider::ResourceId, const IntR
ect& opaqueRect); |
| 33 void pushInvalidTile(int, int); | |
| 34 | 33 |
| 35 void setContentsSwizzled(bool contentsSwizzled) { m_contentsSwizzled = conte
ntsSwizzled; } | 34 void setContentsSwizzled(bool contentsSwizzled) { m_contentsSwizzled = conte
ntsSwizzled; } |
| 36 bool contentsSwizzled() const { return m_contentsSwizzled; } | 35 bool contentsSwizzled() const { return m_contentsSwizzled; } |
| 37 | 36 |
| 38 virtual Region visibleContentOpaqueRegion() const OVERRIDE; | 37 virtual Region visibleContentOpaqueRegion() const OVERRIDE; |
| 39 virtual void didLoseContext() OVERRIDE; | 38 virtual void didLoseContext() OVERRIDE; |
| 40 | 39 |
| 41 protected: | 40 protected: |
| 42 explicit CCTiledLayerImpl(int id); | 41 explicit CCTiledLayerImpl(int id); |
| 43 // Exposed for testing. | 42 // Exposed for testing. |
| 44 bool hasTileAt(int, int) const; | 43 bool hasTileAt(int, int) const; |
| 45 bool hasTextureIdForTileAt(int, int) const; | 44 bool hasTextureIdForTileAt(int, int) const; |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 | 47 |
| 49 virtual const char* layerTypeAsString() const OVERRIDE; | 48 virtual const char* layerTypeAsString() const OVERRIDE; |
| 50 | 49 |
| 51 DrawableTile* tileAt(int, int) const; | 50 DrawableTile* tileAt(int, int) const; |
| 52 DrawableTile* createTile(int, int); | 51 DrawableTile* createTile(int, int); |
| 53 | 52 |
| 54 bool m_skipsDraw; | 53 bool m_skipsDraw; |
| 55 bool m_contentsSwizzled; | 54 bool m_contentsSwizzled; |
| 56 | 55 |
| 57 OwnPtr<CCLayerTilingData> m_tiler; | 56 OwnPtr<CCLayerTilingData> m_tiler; |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } | 59 } |
| 61 | 60 |
| 62 #endif // CCTiledLayerImpl_h | 61 #endif // CCTiledLayerImpl_h |
| OLD | NEW |