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

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

Issue 107413008: Merge 241994 "Revert "cc: Added tile bundles"" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « cc/resources/tile_manager_unittest.cc ('k') | cc/test/fake_picture_layer_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_IMPL_H_ 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layers/picture_layer_impl.h" 9 #include "cc/layers/picture_layer_impl.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 PictureLayerImpl* twin_layer() { return twin_layer_; } 48 PictureLayerImpl* twin_layer() { return twin_layer_; }
49 PictureLayerTilingSet* tilings() { return tilings_.get(); } 49 PictureLayerTilingSet* tilings() { return tilings_.get(); }
50 PicturePileImpl* pile() { return pile_.get(); } 50 PicturePileImpl* pile() { return pile_.get(); }
51 size_t append_quads_count() { return append_quads_count_; } 51 size_t append_quads_count() { return append_quads_count_; }
52 52
53 const Region& invalidation() const { return invalidation_; } 53 const Region& invalidation() const { return invalidation_; }
54 void set_invalidation(const Region& region) { invalidation_ = region; } 54 void set_invalidation(const Region& region) { invalidation_ = region; }
55 55
56 void set_fixed_tile_size(gfx::Size size) { fixed_tile_size_ = size; } 56 void set_fixed_tile_size(gfx::Size size) { fixed_tile_size_ = size; }
57 57
58 void CreateDefaultTilingsAndTiles(WhichTree tree); 58 void CreateDefaultTilingsAndTiles();
59 void SetAllTilesVisible(); 59 void SetAllTilesVisible();
60 void SetAllTilesReady(); 60 void SetAllTilesReady();
61 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); 61 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling);
62 62
63 protected: 63 protected:
64 FakePictureLayerImpl( 64 FakePictureLayerImpl(
65 LayerTreeImpl* tree_impl, 65 LayerTreeImpl* tree_impl,
66 int id, 66 int id,
67 scoped_refptr<PicturePileImpl> pile); 67 scoped_refptr<PicturePileImpl> pile);
68 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); 68 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id);
69 69
70 private: 70 private:
71 gfx::Size fixed_tile_size_; 71 gfx::Size fixed_tile_size_;
72 72
73 size_t append_quads_count_; 73 size_t append_quads_count_;
74 }; 74 };
75 75
76 } // namespace cc 76 } // namespace cc
77 77
78 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 78 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/resources/tile_manager_unittest.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698