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

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

Issue 676953003: cc: Always keep the PictureLayerImpl::twin_layer_ pointer valid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: twins: anothercheck Created 6 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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_picture_layer_impl.cc ('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/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 16 matching lines...) Expand all
27 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; 27 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
28 size_t GetMaxTilesForInterestArea() const override; 28 size_t GetMaxTilesForInterestArea() const override;
29 float GetSkewportTargetTimeInSeconds() const override; 29 float GetSkewportTargetTimeInSeconds() const override;
30 int GetSkewportExtrapolationLimitInContentPixels() const override; 30 int GetSkewportExtrapolationLimitInContentPixels() const override;
31 bool RequiresHighResToDraw() const override; 31 bool RequiresHighResToDraw() const override;
32 32
33 void SetTileSize(const gfx::Size& tile_size); 33 void SetTileSize(const gfx::Size& tile_size);
34 gfx::Size TileSize() const { return tile_size_; } 34 gfx::Size TileSize() const { return tile_size_; }
35 35
36 const Region* GetPendingInvalidation() override; 36 const Region* GetPendingInvalidation() override;
37 const PictureLayerTiling* GetTwinTiling( 37 const PictureLayerTiling* GetPendingOrActiveTwinTiling(
38 const PictureLayerTiling* tiling) const override; 38 const PictureLayerTiling* tiling) const override;
39 PictureLayerTiling* GetRecycledTwinTiling( 39 PictureLayerTiling* GetRecycledTwinTiling(
40 const PictureLayerTiling* tiling) override; 40 const PictureLayerTiling* tiling) override;
41 WhichTree GetTree() const override; 41 WhichTree GetTree() const override;
42 42
43 void set_twin_tiling(PictureLayerTiling* tiling) { twin_tiling_ = tiling; } 43 void set_twin_tiling(PictureLayerTiling* tiling) { twin_tiling_ = tiling; }
44 void set_recycled_twin_tiling(PictureLayerTiling* tiling) { 44 void set_recycled_twin_tiling(PictureLayerTiling* tiling) {
45 recycled_twin_tiling_ = tiling; 45 recycled_twin_tiling_ = tiling;
46 } 46 }
47 void set_text_rect(const gfx::Rect& rect) { text_rect_ = rect; } 47 void set_text_rect(const gfx::Rect& rect) { text_rect_ = rect; }
(...skipping 27 matching lines...) Expand all
75 Region invalidation_; 75 Region invalidation_;
76 size_t max_tiles_for_interest_area_; 76 size_t max_tiles_for_interest_area_;
77 float skewport_target_time_in_seconds_; 77 float skewport_target_time_in_seconds_;
78 int skewport_extrapolation_limit_in_content_pixels_; 78 int skewport_extrapolation_limit_in_content_pixels_;
79 WhichTree tree_; 79 WhichTree tree_;
80 }; 80 };
81 81
82 } // namespace cc 82 } // namespace cc
83 83
84 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 84 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_impl.cc ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698