Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: cc/tile_draw_quad.h

Issue 11417035: cc: Switch the DrawQuad enum names to chromium style and remove pragmas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/texture_draw_quad.cc ('k') | cc/tile_draw_quad.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_TILE_DRAW_QUAD_H_ 5 #ifndef CC_TILE_DRAW_QUAD_H_
6 #define CC_TILE_DRAW_QUAD_H_ 6 #define CC_TILE_DRAW_QUAD_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/cc_export.h"
10 #include "cc/draw_quad.h" 10 #include "cc/draw_quad.h"
11 #include "third_party/khronos/GLES2/gl2.h" 11 #include "third_party/khronos/GLES2/gl2.h"
12 #include "ui/gfx/point.h" 12 #include "ui/gfx/point.h"
13 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 #pragma pack(push, 4)
18
19 class CC_EXPORT TileDrawQuad : public DrawQuad { 17 class CC_EXPORT TileDrawQuad : public DrawQuad {
20 public: 18 public:
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, bool swizzleContents, bool lef tEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeAA); 19 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, bool swizzleContents, bool lef tEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeAA);
22 20
23 unsigned resourceId() const { return m_resourceId; } 21 unsigned resourceId() const { return m_resourceId; }
24 gfx::Vector2d textureOffset() const { return m_textureOffset; } 22 gfx::Vector2d textureOffset() const { return m_textureOffset; }
25 gfx::Size textureSize() const { return m_textureSize; } 23 gfx::Size textureSize() const { return m_textureSize; }
26 bool swizzleContents() const { return m_swizzleContents; } 24 bool swizzleContents() const { return m_swizzleContents; }
27 25
28 bool leftEdgeAA() const { return m_leftEdgeAA; } 26 bool leftEdgeAA() const { return m_leftEdgeAA; }
(...skipping 10 matching lines...) Expand all
39 unsigned m_resourceId; 37 unsigned m_resourceId;
40 gfx::Vector2d m_textureOffset; 38 gfx::Vector2d m_textureOffset;
41 gfx::Size m_textureSize; 39 gfx::Size m_textureSize;
42 bool m_swizzleContents; 40 bool m_swizzleContents;
43 bool m_leftEdgeAA; 41 bool m_leftEdgeAA;
44 bool m_topEdgeAA; 42 bool m_topEdgeAA;
45 bool m_rightEdgeAA; 43 bool m_rightEdgeAA;
46 bool m_bottomEdgeAA; 44 bool m_bottomEdgeAA;
47 }; 45 };
48 46
49 #pragma pack(pop)
50
51 } 47 }
52 48
53 #endif // CC_TILE_DRAW_QUAD_H_ 49 #endif // CC_TILE_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/texture_draw_quad.cc ('k') | cc/tile_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698