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

Unified Diff: cc/quads/tile_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: build fix. 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
Index: cc/quads/tile_draw_quad_base.h
diff --git a/cc/quads/tile_draw_quad_base.h b/cc/quads/tile_draw_quad_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..50f4e19b684a35046d4e73cae5868d88591bf85b
--- /dev/null
+++ b/cc/quads/tile_draw_quad_base.h
@@ -0,0 +1,48 @@
+// 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_BASE_H_
+#define CC_QUADS_TILE_DRAW_QUAD_BASE_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "cc/base/cc_export.h"
+#include "cc/quads/draw_quad.h"
+#include "third_party/khronos/GLES2/gl2.h"
+#include "ui/gfx/point.h"
+#include "ui/gfx/size.h"
+
+namespace cc {
+
+class CC_EXPORT TileDrawQuadBase : public DrawQuad {
danakj 2013/03/21 02:34:42 Since this is the base for more than the TileDrawQ
Leandro Graciá Gil 2013/03/21 03:35:50 Well, this is actually a base class for tile draw
danakj 2013/03/21 04:33:39 Right, but the latter isn't called a TileDrawQuad
Leandro Graciá Gil 2013/03/21 16:42:48 I've considered renaming all references to picture
danakj 2013/03/21 17:20:22 I had a chat with enne@ about this and we're think
+ public:
+ void SetNew(const SharedQuadState* shared_quad_state,
+ DrawQuad::Material material,
+ const gfx::Rect& rect,
danakj 2013/03/21 02:34:42 dont change these types from TileDrawQuad
Leandro Graciá Gil 2013/03/21 16:42:48 Done.
+ const gfx::Rect& opaque_rect,
+ const gfx::RectF& tex_coord_rect,
+ const gfx::Size& texture_size,
+ bool swizzle_contents);
+
+ void SetAll(const SharedQuadState* shared_quad_state,
+ DrawQuad::Material material,
+ const gfx::Rect& rect,
+ const gfx::Rect& opaque_rect,
+ const gfx::Rect& visible_rect,
+ bool needs_blending,
+ const gfx::RectF& tex_coord_rect,
+ const gfx::Size& texture_size,
+ bool swizzle_contents);
+
+ gfx::RectF tex_coord_rect;
+ gfx::Size texture_size;
+ bool swizzle_contents;
+
+ protected:
+ TileDrawQuadBase();
+ virtual ~TileDrawQuadBase();
+};
+
+}
+
+#endif // CC_QUADS_TILE_DRAW_QUAD_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698