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

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: rebase + fix Created 6 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 | 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 PictureLayerTiling* GetRecycledTwinTiling( 40 virtual PictureLayerTiling* GetRecycledTwinTiling(
40 const PictureLayerTiling* tiling) OVERRIDE; 41 const PictureLayerTiling* tiling) OVERRIDE;
41 virtual WhichTree GetTree() const OVERRIDE; 42 virtual WhichTree GetTree() const OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 Region invalidation_; 76 Region invalidation_;
76 size_t max_tiles_for_interest_area_; 77 size_t max_tiles_for_interest_area_;
77 float skewport_target_time_in_seconds_; 78 float skewport_target_time_in_seconds_;
78 int skewport_extrapolation_limit_in_content_pixels_; 79 int skewport_extrapolation_limit_in_content_pixels_;
79 WhichTree tree_; 80 WhichTree tree_;
80 }; 81 };
81 82
82 } // namespace cc 83 } // namespace cc
83 84
84 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 85 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698