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

Unified Diff: cc/test/fake_picture_layer_tiling_client.h

Issue 11417111: cc: Add PictureLayerTilingSet to manage PictureLayerTiling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win_rel 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/scoped_ptr_vector.h ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_tiling_client.h
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..ecadac0ea4a0ad519047cbf9cf95747d47139749
--- /dev/null
+++ b/cc/test/fake_picture_layer_tiling_client.h
@@ -0,0 +1,38 @@
+// 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_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
+#define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
+
+#include "cc/picture_layer_tiling.h"
+#include "cc/picture_pile.h"
+#include "cc/test/fake_tile_manager_client.h"
+#include "cc/tile.h"
+#include "cc/tile_manager.h"
+#include "ui/gfx/rect.h"
+
+namespace cc {
+
+class FakePictureLayerTilingClient : public PictureLayerTilingClient {
+ public:
+ FakePictureLayerTilingClient();
+ virtual ~FakePictureLayerTilingClient();
+
+ // PictureLayerTilingClient implementation.
+ virtual scoped_refptr<Tile> CreateTile(
+ PictureLayerTiling* tiling, gfx::Rect rect) OVERRIDE;
+
+ void SetTileSize(gfx::Size tile_size);
+ gfx::Size TileSize() const { return tile_size_; }
+
+ protected:
+ FakeTileManagerClient tile_manager_client_;
+ TileManager tile_manager_;
+ PicturePile pile_;
+ gfx::Size tile_size_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
« no previous file with comments | « cc/scoped_ptr_vector.h ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698