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 CCTileDrawQuad_h | 5 #ifndef CCTileDrawQuad_h |
6 #define CCTileDrawQuad_h | 6 #define CCTileDrawQuad_h |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/cc_export.h" |
9 #include "cc/draw_quad.h" | 10 #include "cc/draw_quad.h" |
10 #include "third_party/khronos/GLES2/gl2.h" | 11 #include "third_party/khronos/GLES2/gl2.h" |
11 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
12 #include "ui/gfx/size.h" | 13 #include "ui/gfx/size.h" |
13 | 14 |
14 namespace cc { | 15 namespace cc { |
15 | 16 |
16 #pragma pack(push, 4) | 17 #pragma pack(push, 4) |
17 | 18 |
18 class TileDrawQuad : public DrawQuad { | 19 class CC_EXPORT TileDrawQuad : public DrawQuad { |
19 public: | 20 public: |
20 static scoped_ptr<TileDrawQuad> create(const SharedQuadState*, const gfx::Re
ct& quadRect, const gfx::Rect& opaqueRect, unsigned resourceId, const gfx::Vecto
r2d& textureOffset, const gfx::Size& textureSize, GLint textureFilter, bool swiz
zleContents, bool leftEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeA
A); | 21 static scoped_ptr<TileDrawQuad> create(const SharedQuadState*, const gfx::Re
ct& quadRect, const gfx::Rect& opaqueRect, unsigned resourceId, const gfx::Vecto
r2d& textureOffset, const gfx::Size& textureSize, GLint textureFilter, bool swiz
zleContents, bool leftEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeA
A); |
21 | 22 |
22 unsigned resourceId() const { return m_resourceId; } | 23 unsigned resourceId() const { return m_resourceId; } |
23 gfx::Vector2d textureOffset() const { return m_textureOffset; } | 24 gfx::Vector2d textureOffset() const { return m_textureOffset; } |
24 gfx::Size textureSize() const { return m_textureSize; } | 25 gfx::Size textureSize() const { return m_textureSize; } |
25 GLint textureFilter() const { return m_textureFilter; } | 26 GLint textureFilter() const { return m_textureFilter; } |
26 bool swizzleContents() const { return m_swizzleContents; } | 27 bool swizzleContents() const { return m_swizzleContents; } |
27 | 28 |
28 bool leftEdgeAA() const { return m_leftEdgeAA; } | 29 bool leftEdgeAA() const { return m_leftEdgeAA; } |
(...skipping 16 matching lines...) Expand all Loading... |
45 bool m_topEdgeAA; | 46 bool m_topEdgeAA; |
46 bool m_rightEdgeAA; | 47 bool m_rightEdgeAA; |
47 bool m_bottomEdgeAA; | 48 bool m_bottomEdgeAA; |
48 }; | 49 }; |
49 | 50 |
50 #pragma pack(pop) | 51 #pragma pack(pop) |
51 | 52 |
52 } | 53 } |
53 | 54 |
54 #endif | 55 #endif |
OLD | NEW |