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

Unified Diff: cc/tile_draw_quad.h

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/throttled_texture_uploader.cc ('k') | cc/tile_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_draw_quad.h
diff --git a/cc/tile_draw_quad.h b/cc/tile_draw_quad.h
index 638cbb270ce9b24689d5095baf174ade4f4d1a13..21a98cfb864a41b095fd9b8aba439ffb86945c14 100644
--- a/cc/tile_draw_quad.h
+++ b/cc/tile_draw_quad.h
@@ -1,3 +1,54 @@
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+
+#ifndef CCTileDrawQuad_h
+#define CCTileDrawQuad_h
+
+#include "CCDrawQuad.h"
+#include "GraphicsTypes3D.h"
+#include "IntPoint.h"
+#include "IntSize.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace cc {
+
+#pragma pack(push, 4)
+
+class CCTileDrawQuad : public CCDrawQuad {
+public:
+ static scoped_ptr<CCTileDrawQuad> create(const CCSharedQuadState*, const IntRect& quadRect, const IntRect& opaqueRect, unsigned resourceId, const IntPoint& textureOffset, const IntSize& textureSize, GC3Dint textureFilter, bool swizzleContents, bool leftEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeAA);
+
+ unsigned resourceId() const { return m_resourceId; }
+ IntPoint textureOffset() const { return m_textureOffset; }
+ IntSize textureSize() const { return m_textureSize; }
+ GC3Dint textureFilter() const { return m_textureFilter; }
+ bool swizzleContents() const { return m_swizzleContents; }
+
+ bool leftEdgeAA() const { return m_leftEdgeAA; }
+ bool topEdgeAA() const { return m_topEdgeAA; }
+ bool rightEdgeAA() const { return m_rightEdgeAA; }
+ bool bottomEdgeAA() const { return m_bottomEdgeAA; }
+
+ bool isAntialiased() const { return leftEdgeAA() || topEdgeAA() || rightEdgeAA() || bottomEdgeAA(); }
+
+ static const CCTileDrawQuad* materialCast(const CCDrawQuad*);
+private:
+ CCTileDrawQuad(const CCSharedQuadState*, const IntRect& quadRect, const IntRect& opaqueRect, unsigned resourceId, const IntPoint& textureOffset, const IntSize& textureSize, GC3Dint textureFilter, bool swizzleContents, bool leftEdgeAA, bool topEdgeAA, bool rightEdgeAA, bool bottomEdgeAA);
+
+ unsigned m_resourceId;
+ IntPoint m_textureOffset;
+ IntSize m_textureSize;
+ GC3Dint m_textureFilter;
+ bool m_swizzleContents;
+ bool m_leftEdgeAA;
+ bool m_topEdgeAA;
+ bool m_rightEdgeAA;
+ bool m_bottomEdgeAA;
+};
+
+#pragma pack(pop)
+
+}
+
+#endif
« no previous file with comments | « cc/throttled_texture_uploader.cc ('k') | cc/tile_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698