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 "CCDrawQuad.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/draw_quad.h" |
9 #include "third_party/khronos/GLES2/gl2.h" | 10 #include "third_party/khronos/GLES2/gl2.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "ui/gfx/point.h" | 11 #include "ui/gfx/point.h" |
12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/size.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 #pragma pack(push, 4) | 16 #pragma pack(push, 4) |
17 | 17 |
18 class TileDrawQuad : public DrawQuad { | 18 class TileDrawQuad : public DrawQuad { |
19 public: | 19 public: |
20 static scoped_ptr<TileDrawQuad> create(const SharedQuadState*, const gfx::Re
ct& quadRect, const gfx::Rect& opaqueRect, unsigned resourceId, const gfx::Point
& textureOffset, const gfx::Size& textureSize, GLint textureFilter, bool swizzle
Contents, bool leftEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeAA); | 20 static scoped_ptr<TileDrawQuad> create(const SharedQuadState*, const gfx::Re
ct& quadRect, const gfx::Rect& opaqueRect, unsigned resourceId, const gfx::Point
& textureOffset, const gfx::Size& textureSize, GLint textureFilter, bool swizzle
Contents, bool leftEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeAA); |
(...skipping 24 matching lines...) Expand all Loading... |
45 bool m_topEdgeAA; | 45 bool m_topEdgeAA; |
46 bool m_rightEdgeAA; | 46 bool m_rightEdgeAA; |
47 bool m_bottomEdgeAA; | 47 bool m_bottomEdgeAA; |
48 }; | 48 }; |
49 | 49 |
50 #pragma pack(pop) | 50 #pragma pack(pop) |
51 | 51 |
52 } | 52 } |
53 | 53 |
54 #endif | 54 #endif |
OLD | NEW |