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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void setTextureId(unsigned); | 46 void setTextureId(unsigned); |
47 | 47 |
48 void willModifyTexture(); | 48 void willModifyTexture(); |
49 | 49 |
50 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; | 50 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; |
51 | 51 |
52 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; | 52 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; |
53 virtual bool drawsContent() const OVERRIDE; | 53 virtual bool drawsContent() const OVERRIDE; |
54 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; | 54 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; |
55 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; | 55 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
| 56 virtual bool blocksPendingCommit() const OVERRIDE; |
56 | 57 |
57 protected: | 58 protected: |
58 explicit TextureLayer(TextureLayerClient*); | 59 explicit TextureLayer(TextureLayerClient*); |
59 virtual ~TextureLayer(); | 60 virtual ~TextureLayer(); |
60 | 61 |
61 private: | 62 private: |
62 TextureLayerClient* m_client; | 63 TextureLayerClient* m_client; |
63 | 64 |
64 bool m_flipped; | 65 bool m_flipped; |
65 gfx::RectF m_uvRect; | 66 gfx::RectF m_uvRect; |
66 bool m_premultipliedAlpha; | 67 bool m_premultipliedAlpha; |
67 bool m_rateLimitContext; | 68 bool m_rateLimitContext; |
68 bool m_contextLost; | 69 bool m_contextLost; |
69 bool m_contentCommitted; | 70 bool m_contentCommitted; |
70 | 71 |
71 unsigned m_textureId; | 72 unsigned m_textureId; |
72 }; | 73 }; |
73 | 74 |
74 } | 75 } |
75 #endif // CC_TEXTURE_LAYER_H_ | 76 #endif // CC_TEXTURE_LAYER_H_ |
OLD | NEW |