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

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

Issue 98113005: Revert "cc: Added tile bundles" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 PictureLayerImpl* twin_layer() { return twin_layer_; } 49 PictureLayerImpl* twin_layer() { return twin_layer_; }
50 PictureLayerTilingSet* tilings() { return tilings_.get(); } 50 PictureLayerTilingSet* tilings() { return tilings_.get(); }
51 PicturePileImpl* pile() { return pile_.get(); } 51 PicturePileImpl* pile() { return pile_.get(); }
52 size_t append_quads_count() { return append_quads_count_; } 52 size_t append_quads_count() { return append_quads_count_; }
53 53
54 const Region& invalidation() const { return invalidation_; } 54 const Region& invalidation() const { return invalidation_; }
55 void set_invalidation(const Region& region) { invalidation_ = region; } 55 void set_invalidation(const Region& region) { invalidation_ = region; }
56 56
57 void set_fixed_tile_size(gfx::Size size) { fixed_tile_size_ = size; } 57 void set_fixed_tile_size(gfx::Size size) { fixed_tile_size_ = size; }
58 58
59 void CreateDefaultTilingsAndTiles(WhichTree tree); 59 void CreateDefaultTilingsAndTiles();
60 void SetAllTilesVisible(); 60 void SetAllTilesVisible();
61 void SetAllTilesReady(); 61 void SetAllTilesReady();
62 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); 62 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling);
63 63
64 protected: 64 protected:
65 FakePictureLayerImpl( 65 FakePictureLayerImpl(
66 LayerTreeImpl* tree_impl, 66 LayerTreeImpl* tree_impl,
67 int id, 67 int id,
68 scoped_refptr<PicturePileImpl> pile); 68 scoped_refptr<PicturePileImpl> pile);
69 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); 69 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id);
70 70
71 private: 71 private:
72 gfx::Size fixed_tile_size_; 72 gfx::Size fixed_tile_size_;
73 73
74 size_t append_quads_count_; 74 size_t append_quads_count_;
75 }; 75 };
76 76
77 } // namespace cc 77 } // namespace cc
78 78
79 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 79 #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