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

Unified Diff: cc/draw_quad.h

Issue 11189043: cc: Rename cc classes and members to match filenames (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
Index: cc/draw_quad.h
diff --git a/cc/draw_quad.h b/cc/draw_quad.h
index 05a69065468192a161ea93de87601fab0119a7cd..2027dc3c1c5f1abd76c70c68ddaba0dcba2367ee 100644
--- a/cc/draw_quad.h
+++ b/cc/draw_quad.h
@@ -9,7 +9,7 @@
namespace cc {
-// WARNING! All CCXYZDrawQuad classes must remain PODs (plain old data).
+// WARNING! All XYZDrawQuad classes must remain PODs (plain old data).
// They are intended to be "serializable" by copying their raw bytes, so they
// must not contain any non-bit-copyable member variables!
//
@@ -19,11 +19,11 @@ namespace cc {
// transferring these classes over the wire.
#pragma pack(push, 4)
-// CCDrawQuad is a bag of data used for drawing a quad. Because different
+// DrawQuad is a bag of data used for drawing a quad. Because different
// materials need different bits of per-quad data to render, classes that derive
-// from CCDrawQuad store additional data in their derived instance. The Material
+// from DrawQuad store additional data in their derived instance. The Material
// enum is used to "safely" downcast to the derived class.
-class CCDrawQuad {
+class DrawQuad {
public:
enum Material {
Invalid,
@@ -59,19 +59,19 @@ public:
// looking at the material type).
unsigned size() const;
- scoped_ptr<CCDrawQuad> copy(const CCSharedQuadState* copiedSharedQuadState) const;
+ scoped_ptr<DrawQuad> copy(const SharedQuadState* copiedSharedQuadState) const;
- const CCSharedQuadState* sharedQuadState() const { return m_sharedQuadState; }
+ const SharedQuadState* sharedQuadState() const { return m_sharedQuadState; }
int sharedQuadStateId() const { return m_sharedQuadStateId; }
- void setSharedQuadState(const CCSharedQuadState*);
+ void setSharedQuadState(const SharedQuadState*);
protected:
- CCDrawQuad(const CCSharedQuadState*, Material, const IntRect&);
+ DrawQuad(const SharedQuadState*, Material, const IntRect&);
// Stores state common to a large bundle of quads; kept separate for memory
// efficiency. There is special treatment to reconstruct these pointers
// during serialization.
- const CCSharedQuadState* m_sharedQuadState;
+ const SharedQuadState* m_sharedQuadState;
int m_sharedQuadStateId;
Material m_material;
« cc/active_animation.h ('K') | « cc/direct_renderer.cc ('k') | cc/draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698