| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_TEXTURE_LAYER_H_ | 5 #ifndef CC_TEXTURE_LAYER_H_ |
| 6 #define CC_TEXTURE_LAYER_H_ | 6 #define CC_TEXTURE_LAYER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // Code path for plugins which supply their own texture ID. | 58 // Code path for plugins which supply their own texture ID. |
| 59 void setTextureMailbox(const TextureMailbox&); | 59 void setTextureMailbox(const TextureMailbox&); |
| 60 | 60 |
| 61 void willModifyTexture(); | 61 void willModifyTexture(); |
| 62 | 62 |
| 63 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; | 63 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; |
| 64 | 64 |
| 65 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; | 65 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; |
| 66 virtual bool drawsContent() const OVERRIDE; | 66 virtual bool drawsContent() const OVERRIDE; |
| 67 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; | 67 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats*) OVERRIDE; |
| 68 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; | 68 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
| 69 virtual bool blocksPendingCommit() const OVERRIDE; | 69 virtual bool blocksPendingCommit() const OVERRIDE; |
| 70 | 70 |
| 71 virtual bool canClipSelf() const OVERRIDE; | 71 virtual bool canClipSelf() const OVERRIDE; |
| 72 | 72 |
| 73 protected: | 73 protected: |
| 74 TextureLayer(TextureLayerClient*, bool usesMailbox); | 74 TextureLayer(TextureLayerClient*, bool usesMailbox); |
| 75 virtual ~TextureLayer(); | 75 virtual ~TextureLayer(); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 TextureLayerClient* m_client; | 78 TextureLayerClient* m_client; |
| 79 bool m_usesMailbox; | 79 bool m_usesMailbox; |
| 80 | 80 |
| 81 bool m_flipped; | 81 bool m_flipped; |
| 82 gfx::PointF m_uvTopLeft; | 82 gfx::PointF m_uvTopLeft; |
| 83 gfx::PointF m_uvBottomRight; | 83 gfx::PointF m_uvBottomRight; |
| 84 // [bottom left, top left, top right, bottom right] | 84 // [bottom left, top left, top right, bottom right] |
| 85 float m_vertexOpacity[4]; | 85 float m_vertexOpacity[4]; |
| 86 bool m_premultipliedAlpha; | 86 bool m_premultipliedAlpha; |
| 87 bool m_rateLimitContext; | 87 bool m_rateLimitContext; |
| 88 bool m_contextLost; | 88 bool m_contextLost; |
| 89 bool m_contentCommitted; | 89 bool m_contentCommitted; |
| 90 | 90 |
| 91 unsigned m_textureId; | 91 unsigned m_textureId; |
| 92 TextureMailbox m_textureMailbox; | 92 TextureMailbox m_textureMailbox; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } | 95 } |
| 96 #endif // CC_TEXTURE_LAYER_H_ | 96 #endif // CC_TEXTURE_LAYER_H_ |
| OLD | NEW |