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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual bool blocksPendingCommit() const OVERRIDE; |
57 | 57 |
| 58 bool canClipSelf() const OVERRIDE { return true; } |
| 59 |
58 protected: | 60 protected: |
59 explicit TextureLayer(TextureLayerClient*); | 61 explicit TextureLayer(TextureLayerClient*); |
60 virtual ~TextureLayer(); | 62 virtual ~TextureLayer(); |
61 | 63 |
62 private: | 64 private: |
63 TextureLayerClient* m_client; | 65 TextureLayerClient* m_client; |
64 | 66 |
65 bool m_flipped; | 67 bool m_flipped; |
66 gfx::RectF m_uvRect; | 68 gfx::RectF m_uvRect; |
67 bool m_premultipliedAlpha; | 69 bool m_premultipliedAlpha; |
68 bool m_rateLimitContext; | 70 bool m_rateLimitContext; |
69 bool m_contextLost; | 71 bool m_contextLost; |
70 bool m_contentCommitted; | 72 bool m_contentCommitted; |
71 | 73 |
72 unsigned m_textureId; | 74 unsigned m_textureId; |
73 }; | 75 }; |
74 | 76 |
75 } | 77 } |
76 #endif // CC_TEXTURE_LAYER_H_ | 78 #endif // CC_TEXTURE_LAYER_H_ |
OLD | NEW |