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

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

Issue 1051993002: cc: Remove tile sharing from tilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 8 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
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/resources/picture_layer_tiling.h" 8 #include "cc/resources/picture_layer_tiling.h"
9 #include "cc/resources/picture_pile_impl.h" 9 #include "cc/resources/picture_pile_impl.h"
10 #include "cc/resources/tile.h" 10 #include "cc/resources/tile.h"
11 #include "cc/resources/tile_manager.h" 11 #include "cc/resources/tile_manager.h"
12 #include "cc/test/fake_tile_manager_client.h" 12 #include "cc/test/fake_tile_manager_client.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:
19 FakePictureLayerTilingClient(); 19 FakePictureLayerTilingClient();
20 explicit FakePictureLayerTilingClient(ResourceProvider* resource_provider); 20 explicit FakePictureLayerTilingClient(ResourceProvider* resource_provider);
21 ~FakePictureLayerTilingClient() override; 21 ~FakePictureLayerTilingClient() override;
22 22
23 // PictureLayerTilingClient implementation. 23 // PictureLayerTilingClient implementation.
24 scoped_refptr<Tile> CreateTile(float contents_scale, 24 scoped_refptr<Tile> CreateTile(
25 const gfx::Rect& rect) override; 25 float contents_scale,
26 const gfx::Rect& rect,
27 scoped_refptr<RasterSource>* raster_source) override;
26 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; 28 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
27 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; 29 TilePriority::PriorityBin GetMaxTilePriorityBin() const override;
28 30
29 void SetTileSize(const gfx::Size& tile_size); 31 void SetTileSize(const gfx::Size& tile_size);
30 gfx::Size TileSize() const { return tile_size_; } 32 gfx::Size TileSize() const { return tile_size_; }
31 33
32 const Region* GetPendingInvalidation() override; 34 const Region* GetPendingInvalidation() override;
33 const PictureLayerTiling* GetPendingOrActiveTwinTiling( 35 const PictureLayerTiling* GetPendingOrActiveTwinTiling(
34 const PictureLayerTiling* tiling) const override; 36 const PictureLayerTiling* tiling) const override;
35 PictureLayerTiling* GetRecycledTwinTiling( 37 PictureLayerTiling* GetRecycledTwinTiling(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 PictureLayerTiling* recycled_twin_tiling_; 73 PictureLayerTiling* recycled_twin_tiling_;
72 gfx::Rect text_rect_; 74 gfx::Rect text_rect_;
73 Region invalidation_; 75 Region invalidation_;
74 TilePriority::PriorityBin max_tile_priority_bin_; 76 TilePriority::PriorityBin max_tile_priority_bin_;
75 WhichTree tree_; 77 WhichTree tree_;
76 }; 78 };
77 79
78 } // namespace cc 80 } // namespace cc
79 81
80 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 82 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698