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

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

Issue 18308004: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 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 12 matching lines...) Expand all
23 virtual scoped_refptr<Tile> CreateTile( 23 virtual scoped_refptr<Tile> CreateTile(
24 PictureLayerTiling* tiling, gfx::Rect rect) OVERRIDE; 24 PictureLayerTiling* tiling, gfx::Rect rect) OVERRIDE;
25 virtual void DestroyTile(Tile* tile) OVERRIDE {} 25 virtual void DestroyTile(Tile* tile) OVERRIDE {}
26 virtual void UpdatePile(Tile* tile) OVERRIDE {} 26 virtual void UpdatePile(Tile* tile) OVERRIDE {}
27 virtual gfx::Size CalculateTileSize( 27 virtual gfx::Size CalculateTileSize(
28 gfx::Size content_bounds) const OVERRIDE; 28 gfx::Size content_bounds) const OVERRIDE;
29 29
30 void SetTileSize(gfx::Size tile_size); 30 void SetTileSize(gfx::Size tile_size);
31 gfx::Size TileSize() const { return tile_size_; } 31 gfx::Size TileSize() const { return tile_size_; }
32 scoped_refptr<PicturePileImpl> pile() { return pile_; } 32 scoped_refptr<PicturePileImpl> pile() { return pile_; }
33 const PicturePileImpl* pile() const { return pile_; } 33 const PicturePileImpl* pile() const { return pile_.get(); }
34 34
35 virtual const Region* GetInvalidation() OVERRIDE; 35 virtual const Region* GetInvalidation() OVERRIDE;
36 virtual const PictureLayerTiling* GetTwinTiling( 36 virtual const PictureLayerTiling* GetTwinTiling(
37 const PictureLayerTiling* tiling) OVERRIDE; 37 const PictureLayerTiling* tiling) OVERRIDE;
38 38
39 void set_twin_tiling(PictureLayerTiling* tiling) { twin_tiling_ = tiling; } 39 void set_twin_tiling(PictureLayerTiling* tiling) { twin_tiling_ = tiling; }
40 void set_text_rect(gfx::Rect rect) { text_rect_ = rect; } 40 void set_text_rect(gfx::Rect rect) { text_rect_ = rect; }
41 void set_allow_create_tile(bool allow) { allow_create_tile_ = allow; } 41 void set_allow_create_tile(bool allow) { allow_create_tile_ = allow; }
42 void set_invalidation(const Region& region) { invalidation_ = region; } 42 void set_invalidation(const Region& region) { invalidation_ = region; }
43 43
44 protected: 44 protected:
45 FakeTileManagerClient tile_manager_client_; 45 FakeTileManagerClient tile_manager_client_;
46 scoped_ptr<TileManager> tile_manager_; 46 scoped_ptr<TileManager> tile_manager_;
47 scoped_refptr<PicturePileImpl> pile_; 47 scoped_refptr<PicturePileImpl> pile_;
48 gfx::Size tile_size_; 48 gfx::Size tile_size_;
49 PictureLayerTiling* twin_tiling_; 49 PictureLayerTiling* twin_tiling_;
50 gfx::Rect text_rect_; 50 gfx::Rect text_rect_;
51 bool allow_create_tile_; 51 bool allow_create_tile_;
52 Region invalidation_; 52 Region invalidation_;
53 }; 53 };
54 54
55 } // namespace cc 55 } // namespace cc
56 56
57 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ 57 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
OLDNEW
« no previous file with comments | « ash/desktop_background/desktop_background_controller.cc ('k') | chrome/browser/chromeos/camera_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698