| 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 "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
| 9 #include "cc/layer.h" | 9 #include "cc/layer.h" |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void willModifyTexture(); | 51 void willModifyTexture(); |
| 52 | 52 |
| 53 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; | 53 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; |
| 54 | 54 |
| 55 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; | 55 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; |
| 56 virtual bool drawsContent() const OVERRIDE; | 56 virtual bool drawsContent() const OVERRIDE; |
| 57 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; | 57 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; |
| 58 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; | 58 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
| 59 virtual bool blocksPendingCommit() const OVERRIDE; | 59 virtual bool blocksPendingCommit() const OVERRIDE; |
| 60 | 60 |
| 61 virtual bool canClipSelf() const OVERRIDE; |
| 62 |
| 61 protected: | 63 protected: |
| 62 explicit TextureLayer(TextureLayerClient*); | 64 explicit TextureLayer(TextureLayerClient*); |
| 63 virtual ~TextureLayer(); | 65 virtual ~TextureLayer(); |
| 64 | 66 |
| 65 private: | 67 private: |
| 66 TextureLayerClient* m_client; | 68 TextureLayerClient* m_client; |
| 67 | 69 |
| 68 bool m_flipped; | 70 bool m_flipped; |
| 69 gfx::RectF m_uvRect; | 71 gfx::RectF m_uvRect; |
| 70 // [bottom left, top left, top right, bottom right] | 72 // [bottom left, top left, top right, bottom right] |
| 71 float m_vertexOpacity[4]; | 73 float m_vertexOpacity[4]; |
| 72 bool m_premultipliedAlpha; | 74 bool m_premultipliedAlpha; |
| 73 bool m_rateLimitContext; | 75 bool m_rateLimitContext; |
| 74 bool m_contextLost; | 76 bool m_contextLost; |
| 75 bool m_contentCommitted; | 77 bool m_contentCommitted; |
| 76 | 78 |
| 77 unsigned m_textureId; | 79 unsigned m_textureId; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } | 82 } |
| 81 #endif // CC_TEXTURE_LAYER_H_ | 83 #endif // CC_TEXTURE_LAYER_H_ |
| OLD | NEW |