| 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 "CCDrawQuad.h" |
| 9 #include "GraphicsTypes3D.h" | 9 #include "GraphicsTypes3D.h" |
| 10 #include "IntPoint.h" | 10 #include "IntPoint.h" |
| 11 #include "IntSize.h" | 11 #include "IntSize.h" |
| 12 #include <wtf/PassOwnPtr.h> | 12 #include <wtf/PassOwnPtr.h> |
| 13 | 13 |
| 14 namespace WebCore { | 14 namespace cc { |
| 15 | 15 |
| 16 #pragma pack(push, 4) | 16 #pragma pack(push, 4) |
| 17 | 17 |
| 18 class CCTileDrawQuad : public CCDrawQuad { | 18 class CCTileDrawQuad : public CCDrawQuad { |
| 19 public: | 19 public: |
| 20 static PassOwnPtr<CCTileDrawQuad> create(const CCSharedQuadState*, const Int
Rect& quadRect, const IntRect& opaqueRect, unsigned resourceId, const IntPoint&
textureOffset, const IntSize& textureSize, GC3Dint textureFilter, bool swizzleCo
ntents, bool leftEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeAA); | 20 static PassOwnPtr<CCTileDrawQuad> create(const CCSharedQuadState*, const Int
Rect& quadRect, const IntRect& opaqueRect, unsigned resourceId, const IntPoint&
textureOffset, const IntSize& textureSize, GC3Dint textureFilter, bool swizzleCo
ntents, bool leftEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeAA); |
| 21 | 21 |
| 22 unsigned resourceId() const { return m_resourceId; } | 22 unsigned resourceId() const { return m_resourceId; } |
| 23 IntPoint textureOffset() const { return m_textureOffset; } | 23 IntPoint textureOffset() const { return m_textureOffset; } |
| 24 IntSize textureSize() const { return m_textureSize; } | 24 IntSize textureSize() const { return m_textureSize; } |
| (...skipping 20 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 |