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

Unified Diff: cc/quads/content_draw_quad_base.h

Issue 12642010: Implement on demand quad rasterization for PicturePiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 7 years, 9 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/output/gl_renderer.cc ('k') | cc/quads/content_draw_quad_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/quads/content_draw_quad_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698