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

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

Issue 410523002: cc: Add eviction tile queue construct (and iterate) perftests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | no next file » | 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return screen_space_transform_for_tile_priority_; 86 return screen_space_transform_for_tile_priority_;
87 } 87 }
88 88
89 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } 89 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; }
90 90
91 void CreateDefaultTilingsAndTiles(); 91 void CreateDefaultTilingsAndTiles();
92 void SetAllTilesVisible(); 92 void SetAllTilesVisible();
93 void SetAllTilesReady(); 93 void SetAllTilesReady();
94 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); 94 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling);
95 void ResetAllTilesPriorities(); 95 void ResetAllTilesPriorities();
96 PictureLayerTilingSet* GetTilings() { return tilings_.get(); }
96 97
97 protected: 98 protected:
98 FakePictureLayerImpl( 99 FakePictureLayerImpl(
99 LayerTreeImpl* tree_impl, 100 LayerTreeImpl* tree_impl,
100 int id, 101 int id,
101 scoped_refptr<PicturePileImpl> pile); 102 scoped_refptr<PicturePileImpl> pile);
102 FakePictureLayerImpl(LayerTreeImpl* tree_impl, 103 FakePictureLayerImpl(LayerTreeImpl* tree_impl,
103 int id, 104 int id,
104 scoped_refptr<PicturePileImpl> pile, 105 scoped_refptr<PicturePileImpl> pile,
105 const gfx::Size& layer_bounds); 106 const gfx::Size& layer_bounds);
106 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); 107 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id);
107 108
108 private: 109 private:
109 gfx::Size fixed_tile_size_; 110 gfx::Size fixed_tile_size_;
110 111
111 size_t append_quads_count_; 112 size_t append_quads_count_;
112 }; 113 };
113 114
114 } // namespace cc 115 } // namespace cc
115 116
116 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 117 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698