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 TextureLayerChromium_h | 5 #ifndef TextureLayerChromium_h |
6 #define TextureLayerChromium_h | 6 #define TextureLayerChromium_h |
7 | 7 |
8 #include "cc/layer.h" | 8 #include "cc/layer.h" |
9 | 9 |
10 namespace WebKit { | 10 namespace WebKit { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 // Code path for plugins which supply their own texture ID. | 44 // Code path for plugins which supply their own texture ID. |
45 void setTextureId(unsigned); | 45 void setTextureId(unsigned); |
46 | 46 |
47 void willModifyTexture(); | 47 void willModifyTexture(); |
48 | 48 |
49 virtual void setNeedsDisplayRect(const FloatRect&) OVERRIDE; | 49 virtual void setNeedsDisplayRect(const FloatRect&) OVERRIDE; |
50 | 50 |
51 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; | 51 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; |
52 virtual bool drawsContent() const OVERRIDE; | 52 virtual bool drawsContent() const OVERRIDE; |
53 virtual void update(TextureUpdateQueue&, const OcclusionTracker*, RenderingS
tats&) OVERRIDE; | 53 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; |
54 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; | 54 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
55 | 55 |
56 protected: | 56 protected: |
57 explicit TextureLayer(TextureLayerClient*); | 57 explicit TextureLayer(TextureLayerClient*); |
58 virtual ~TextureLayer(); | 58 virtual ~TextureLayer(); |
59 | 59 |
60 private: | 60 private: |
61 TextureLayerClient* m_client; | 61 TextureLayerClient* m_client; |
62 | 62 |
63 bool m_flipped; | 63 bool m_flipped; |
64 FloatRect m_uvRect; | 64 FloatRect m_uvRect; |
65 bool m_premultipliedAlpha; | 65 bool m_premultipliedAlpha; |
66 bool m_rateLimitContext; | 66 bool m_rateLimitContext; |
67 bool m_contextLost; | 67 bool m_contextLost; |
68 | 68 |
69 unsigned m_textureId; | 69 unsigned m_textureId; |
70 }; | 70 }; |
71 | 71 |
72 } | 72 } |
73 #endif | 73 #endif |
OLD | NEW |