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

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

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 11 matching lines...) Expand all
22 22
23 // PictureLayerTilingClient implementation. 23 // PictureLayerTilingClient implementation.
24 virtual scoped_refptr<Tile> CreateTile( 24 virtual scoped_refptr<Tile> CreateTile(
25 PictureLayerTiling* tiling, const gfx::Rect& rect) OVERRIDE; 25 PictureLayerTiling* tiling, const gfx::Rect& rect) OVERRIDE;
26 virtual PicturePileImpl* GetPile() OVERRIDE; 26 virtual PicturePileImpl* GetPile() OVERRIDE;
27 virtual gfx::Size CalculateTileSize( 27 virtual gfx::Size CalculateTileSize(
28 const gfx::Size& content_bounds) const OVERRIDE; 28 const gfx::Size& content_bounds) const OVERRIDE;
29 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE; 29 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE;
30 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE; 30 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE;
31 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE; 31 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE;
32 virtual bool RequiresHighResToDraw() const OVERRIDE;
32 33
33 void SetTileSize(const gfx::Size& tile_size); 34 void SetTileSize(const gfx::Size& tile_size);
34 gfx::Size TileSize() const { return tile_size_; } 35 gfx::Size TileSize() const { return tile_size_; }
35 36
36 virtual const Region* GetInvalidation() OVERRIDE; 37 virtual const Region* GetInvalidation() OVERRIDE;
37 virtual const PictureLayerTiling* GetTwinTiling( 38 virtual const PictureLayerTiling* GetTwinTiling(
38 const PictureLayerTiling* tiling) const OVERRIDE; 39 const PictureLayerTiling* tiling) const OVERRIDE;
39 virtual WhichTree GetTree() const OVERRIDE; 40 virtual WhichTree GetTree() const OVERRIDE;
40 41
41 void set_twin_tiling(PictureLayerTiling* tiling) { twin_tiling_ = tiling; } 42 void set_twin_tiling(PictureLayerTiling* tiling) { twin_tiling_ = tiling; }
(...skipping 27 matching lines...) Expand all
69 Region invalidation_; 70 Region invalidation_;
70 size_t max_tiles_for_interest_area_; 71 size_t max_tiles_for_interest_area_;
71 float skewport_target_time_in_seconds_; 72 float skewport_target_time_in_seconds_;
72 int skewport_extrapolation_limit_in_content_pixels_; 73 int skewport_extrapolation_limit_in_content_pixels_;
73 WhichTree tree_; 74 WhichTree tree_;
74 }; 75 };
75 76
76 } // namespace cc 77 } // namespace cc
77 78
78 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 79 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698