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

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

Issue 874613003: cc: Stop pushing properties every activation for picture layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pli-pushprops: fixscrolling Created 5 years, 10 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/resources/picture_layer_tiling_set.cc ('k') | no next file » | 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/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"
(...skipping 18 matching lines...) Expand all
29 void SetTileSize(const gfx::Size& tile_size); 29 void SetTileSize(const gfx::Size& tile_size);
30 gfx::Size TileSize() const { return tile_size_; } 30 gfx::Size TileSize() const { return tile_size_; }
31 31
32 const Region* GetPendingInvalidation() override; 32 const Region* GetPendingInvalidation() override;
33 const PictureLayerTiling* GetPendingOrActiveTwinTiling( 33 const PictureLayerTiling* GetPendingOrActiveTwinTiling(
34 const PictureLayerTiling* tiling) const override; 34 const PictureLayerTiling* tiling) const override;
35 PictureLayerTiling* GetRecycledTwinTiling( 35 PictureLayerTiling* GetRecycledTwinTiling(
36 const PictureLayerTiling* tiling) override; 36 const PictureLayerTiling* tiling) override;
37 bool RequiresHighResToDraw() const override; 37 bool RequiresHighResToDraw() const override;
38 WhichTree GetTree() const override; 38 WhichTree GetTree() const override;
39 void TilingLiveRectChanged() override {}
39 40
40 void set_twin_tiling_set(PictureLayerTilingSet* set) { 41 void set_twin_tiling_set(PictureLayerTilingSet* set) {
41 twin_set_ = set; 42 twin_set_ = set;
42 twin_tiling_ = nullptr; 43 twin_tiling_ = nullptr;
43 } 44 }
44 void set_twin_tiling(PictureLayerTiling* tiling) { 45 void set_twin_tiling(PictureLayerTiling* tiling) {
45 twin_tiling_ = tiling; 46 twin_tiling_ = tiling;
46 twin_set_ = nullptr; 47 twin_set_ = nullptr;
47 } 48 }
48 void set_recycled_twin_tiling(PictureLayerTiling* tiling) { 49 void set_recycled_twin_tiling(PictureLayerTiling* tiling) {
(...skipping 22 matching lines...) Expand all
71 PictureLayerTiling* recycled_twin_tiling_; 72 PictureLayerTiling* recycled_twin_tiling_;
72 gfx::Rect text_rect_; 73 gfx::Rect text_rect_;
73 Region invalidation_; 74 Region invalidation_;
74 TilePriority::PriorityBin max_tile_priority_bin_; 75 TilePriority::PriorityBin max_tile_priority_bin_;
75 WhichTree tree_; 76 WhichTree tree_;
76 }; 77 };
77 78
78 } // namespace cc 79 } // namespace cc
79 80
80 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 81 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698