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

Unified Diff: cc/tile.h

Issue 11369130: [cc] Tiles and tile manager for impl side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixen Created 8 years, 1 month 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/cc.gyp ('k') | cc/tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile.h
diff --git a/cc/tile.h b/cc/tile.h
new file mode 100644
index 0000000000000000000000000000000000000000..fb57375af62d9ad1a286a5ad852ba96829f1e45b
--- /dev/null
+++ b/cc/tile.h
@@ -0,0 +1,50 @@
+// 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 CC_TILE_H_
+#define CC_TILE_H_
+
+#include "base/memory/ref_counted.h"
+#include "cc/picture_pile.h"
+#include "cc/resource_provider.h"
+#include "cc/tile_priority.h"
+#include "ui/gfx/rect.h"
+#include "ui/gfx/size.h"
+
+namespace cc {
+
+class TileManager;
+
+enum TileQuality {
+ LOW_TILE_QUALITY,
+ NORMAL_TILE_QUALITY
+};
+
+class Tile : public base::RefCounted<Tile> {
+ public:
+ Tile(TileManager* tile_manager,
+ gfx::Size tile_size,
+ gfx::Rect rect_inside_picture,
+ TileQuality quality);
+
+ void SetPicturePile(int frame_number, scoped_ptr<PicturePile> picture_pile) {}
+ void SetPriority(int frame_number, TilePriority) {}
+
+ bool IsDrawable(int frame_number) { return false; }
+ ResourceProvider::ResourceId GetDrawableResourceId(int frame_number) { return 0; }
+
+ private:
+ friend class base::RefCounted<Tile>;
+ friend class TileManager;
+
+ ~Tile();
+
+ TileManager* tile_manager_;
+ gfx::Rect tile_size_;
+ gfx::Rect rect_inside_picture_;
+ TileQuality quality_;
+};
+
+} // namespace cc
+#endif
« no previous file with comments | « cc/cc.gyp ('k') | cc/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698