Index: cc/quads/content_draw_quad_base.h |
diff --git a/cc/quads/tile_draw_quad.h b/cc/quads/content_draw_quad_base.h |
similarity index 63% |
copy from cc/quads/tile_draw_quad.h |
copy to cc/quads/content_draw_quad_base.h |
index e39a281aa8462c1d92cc683f72286937d1582f32..f91390b02bc1965f96007084fe12f89224c196de 100644 |
--- a/cc/quads/tile_draw_quad.h |
+++ b/cc/quads/content_draw_quad_base.h |
@@ -1,9 +1,9 @@ |
-// Copyright 2012 The Chromium Authors. All rights reserved. |
+// Copyright 2013 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 CC_QUADS_TILE_DRAW_QUAD_H_ |
-#define CC_QUADS_TILE_DRAW_QUAD_H_ |
+#ifndef CC_QUADS_CONTENT_DRAW_QUAD_BASE_H_ |
+#define CC_QUADS_CONTENT_DRAW_QUAD_BASE_H_ |
#include "base/memory/scoped_ptr.h" |
#include "cc/base/cc_export.h" |
@@ -14,42 +14,35 @@ |
namespace cc { |
-class CC_EXPORT TileDrawQuad : public DrawQuad { |
+class CC_EXPORT ContentDrawQuadBase : public DrawQuad { |
public: |
- static scoped_ptr<TileDrawQuad> Create(); |
- |
void SetNew(const SharedQuadState* shared_quad_state, |
+ DrawQuad::Material material, |
gfx::Rect rect, |
gfx::Rect opaque_rect, |
- unsigned resource_id, |
const gfx::RectF& tex_coord_rect, |
gfx::Size texture_size, |
bool swizzle_contents); |
void SetAll(const SharedQuadState* shared_quad_state, |
+ DrawQuad::Material material, |
gfx::Rect rect, |
gfx::Rect opaque_rect, |
gfx::Rect visible_rect, |
bool needs_blending, |
- unsigned resource_id, |
const gfx::RectF& tex_coord_rect, |
gfx::Size texture_size, |
bool swizzle_contents); |
- unsigned resource_id; |
gfx::RectF tex_coord_rect; |
gfx::Size texture_size; |
bool swizzle_contents; |
- virtual void IterateResources(const ResourceIteratorCallback& callback) |
- OVERRIDE; |
- |
- static const TileDrawQuad* MaterialCast(const DrawQuad*); |
- |
- private: |
- TileDrawQuad(); |
+ protected: |
+ ContentDrawQuadBase(); |
+ virtual ~ContentDrawQuadBase(); |
}; |
-} // namespace cc |
+} |
-#endif // CC_QUADS_TILE_DRAW_QUAD_H_ |
+#endif // CC_QUADS_CONTENT_DRAW_QUAD_BASE_H_ |