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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
6 #define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
7
8 #include "cc/picture_layer_tiling.h"
9 #include "cc/picture_pile.h"
10 #include "cc/test/fake_tile_manager_client.h"
11 #include "cc/tile.h"
12 #include "cc/tile_manager.h"
13 #include "ui/gfx/rect.h"
14
15 namespace cc {
16
17 class FakePictureLayerTilingClient : public PictureLayerTilingClient {
18 public:
19 FakePictureLayerTilingClient();
20 virtual ~FakePictureLayerTilingClient();
21
22 // PictureLayerTilingClient implementation.
23 virtual scoped_refptr<Tile> CreateTile(
24 PictureLayerTiling* tiling, gfx::Rect rect) OVERRIDE;
25
26 void SetTileSize(gfx::Size tile_size);
27 gfx::Size TileSize() const { return tile_size_; }
28
29 protected:
30 FakeTileManagerClient tile_manager_client_;
31 TileManager tile_manager_;
32 PicturePile pile_;
33 gfx::Size tile_size_;
34 };
35
36 } // namespace cc
37
38 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
OLDNEW
« 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