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

Side by Side Diff: cc/test/fake_picture_layer_tiling_client.h

Issue 1362663002: cc: Remove PicturePile and PicturePileImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_picture_layer_impl.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
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
6 #define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 6 #define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
7 7
8 #include "cc/playback/picture_pile_impl.h" 8 #include "cc/playback/display_list_raster_source.h"
9 #include "cc/test/fake_tile_manager_client.h" 9 #include "cc/test/fake_tile_manager_client.h"
10 #include "cc/tiles/picture_layer_tiling.h" 10 #include "cc/tiles/picture_layer_tiling.h"
11 #include "cc/tiles/tile.h" 11 #include "cc/tiles/tile.h"
12 #include "cc/tiles/tile_manager.h" 12 #include "cc/tiles/tile_manager.h"
13 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class FakePictureLayerTilingClient : public PictureLayerTilingClient { 17 class FakePictureLayerTilingClient : public PictureLayerTilingClient {
18 public: 18 public:
(...skipping 20 matching lines...) Expand all
39 } 39 }
40 void set_twin_tiling(PictureLayerTiling* tiling) { 40 void set_twin_tiling(PictureLayerTiling* tiling) {
41 twin_tiling_ = tiling; 41 twin_tiling_ = tiling;
42 twin_set_ = nullptr; 42 twin_set_ = nullptr;
43 } 43 }
44 void set_text_rect(const gfx::Rect& rect) { text_rect_ = rect; } 44 void set_text_rect(const gfx::Rect& rect) { text_rect_ = rect; }
45 void set_invalidation(const Region& region) { invalidation_ = region; } 45 void set_invalidation(const Region& region) { invalidation_ = region; }
46 void set_has_valid_tile_priorities(bool has_valid_tile_priorities) { 46 void set_has_valid_tile_priorities(bool has_valid_tile_priorities) {
47 has_valid_tile_priorities_ = has_valid_tile_priorities; 47 has_valid_tile_priorities_ = has_valid_tile_priorities;
48 } 48 }
49 RasterSource* raster_source() { return pile_.get(); } 49 RasterSource* raster_source() { return raster_source_.get(); }
50 50
51 TileManager* tile_manager() const { 51 TileManager* tile_manager() const {
52 return tile_manager_.get(); 52 return tile_manager_.get();
53 } 53 }
54 54
55 protected: 55 protected:
56 FakeTileManagerClient tile_manager_client_; 56 FakeTileManagerClient tile_manager_client_;
57 scoped_ptr<ResourcePool> resource_pool_; 57 scoped_ptr<ResourcePool> resource_pool_;
58 scoped_ptr<TileManager> tile_manager_; 58 scoped_ptr<TileManager> tile_manager_;
59 scoped_refptr<PicturePileImpl> pile_; 59 scoped_refptr<DisplayListRasterSource> raster_source_;
60 gfx::Size tile_size_; 60 gfx::Size tile_size_;
61 PictureLayerTilingSet* twin_set_; 61 PictureLayerTilingSet* twin_set_;
62 PictureLayerTiling* twin_tiling_; 62 PictureLayerTiling* twin_tiling_;
63 gfx::Rect text_rect_; 63 gfx::Rect text_rect_;
64 Region invalidation_; 64 Region invalidation_;
65 bool has_valid_tile_priorities_; 65 bool has_valid_tile_priorities_;
66 }; 66 };
67 67
68 } // namespace cc 68 } // namespace cc
69 69
70 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 70 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_impl.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