OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TEXTURE_LAYER_IMPL_H_ |
6 #define CC_TEXTURE_LAYER_IMPL_H_ | 6 #define CC_TEXTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 unsigned textureId() const { return m_textureId; } | 29 unsigned textureId() const { return m_textureId; } |
30 void setTextureId(unsigned id) { m_textureId = id; } | 30 void setTextureId(unsigned id) { m_textureId = id; } |
31 void setPremultipliedAlpha(bool premultipliedAlpha) { m_premultipliedAlpha =
premultipliedAlpha; } | 31 void setPremultipliedAlpha(bool premultipliedAlpha) { m_premultipliedAlpha =
premultipliedAlpha; } |
32 void setFlipped(bool flipped) { m_flipped = flipped; } | 32 void setFlipped(bool flipped) { m_flipped = flipped; } |
33 void setUVRect(const gfx::RectF& rect) { m_uvRect = rect; } | 33 void setUVRect(const gfx::RectF& rect) { m_uvRect = rect; } |
34 | 34 |
35 // 1--2 | 35 // 1--2 |
36 // | | | 36 // | | |
37 // 0--3 | 37 // 0--3 |
38 void setVertexOpacity(const float vertexOpacity[4]); | 38 void setVertexOpacity(const float vertexOpacity[4]); |
| 39 virtual bool canClipSelf() const OVERRIDE; |
39 | 40 |
40 private: | 41 private: |
41 TextureLayerImpl(LayerTreeImpl* treeImpl, int id); | 42 TextureLayerImpl(LayerTreeImpl* treeImpl, int id); |
42 | 43 |
43 virtual const char* layerTypeAsString() const OVERRIDE; | 44 virtual const char* layerTypeAsString() const OVERRIDE; |
44 | 45 |
45 unsigned m_textureId; | 46 unsigned m_textureId; |
46 ResourceProvider::ResourceId m_externalTextureResource; | 47 ResourceProvider::ResourceId m_externalTextureResource; |
47 bool m_premultipliedAlpha; | 48 bool m_premultipliedAlpha; |
48 bool m_flipped; | 49 bool m_flipped; |
49 gfx::RectF m_uvRect; | 50 gfx::RectF m_uvRect; |
50 float m_vertexOpacity[4]; | 51 float m_vertexOpacity[4]; |
51 }; | 52 }; |
52 | 53 |
53 } | 54 } |
54 | 55 |
55 #endif // CC_TEXTURE_LAYER_IMPL_H_ | 56 #endif // CC_TEXTURE_LAYER_IMPL_H_ |
OLD | NEW |