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

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

Issue 540663002: cc: Don't require low res to activate for shared ready-to-draw tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « cc/layers/picture_layer_impl_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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 gfx::Transform screen_space_transform_for_tile_priority() { 101 gfx::Transform screen_space_transform_for_tile_priority() {
102 return screen_space_transform_for_tile_priority_; 102 return screen_space_transform_for_tile_priority_;
103 } 103 }
104 104
105 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } 105 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; }
106 106
107 void CreateDefaultTilingsAndTiles(); 107 void CreateDefaultTilingsAndTiles();
108 void SetAllTilesVisible(); 108 void SetAllTilesVisible();
109 void SetAllTilesReady(); 109 void SetAllTilesReady();
110 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); 110 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling);
111 void SetTileReady(Tile* tile);
111 void ResetAllTilesPriorities(); 112 void ResetAllTilesPriorities();
112 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } 113 PictureLayerTilingSet* GetTilings() { return tilings_.get(); }
113 114
114 protected: 115 protected:
115 FakePictureLayerImpl( 116 FakePictureLayerImpl(
116 LayerTreeImpl* tree_impl, 117 LayerTreeImpl* tree_impl,
117 int id, 118 int id,
118 scoped_refptr<PicturePileImpl> pile); 119 scoped_refptr<PicturePileImpl> pile);
119 FakePictureLayerImpl(LayerTreeImpl* tree_impl, 120 FakePictureLayerImpl(LayerTreeImpl* tree_impl,
120 int id, 121 int id,
121 scoped_refptr<PicturePileImpl> pile, 122 scoped_refptr<PicturePileImpl> pile,
122 const gfx::Size& layer_bounds); 123 const gfx::Size& layer_bounds);
123 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); 124 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id);
124 125
125 private: 126 private:
126 gfx::Size fixed_tile_size_; 127 gfx::Size fixed_tile_size_;
127 128
128 size_t append_quads_count_; 129 size_t append_quads_count_;
129 size_t did_become_active_call_count_; 130 size_t did_become_active_call_count_;
130 bool has_valid_tile_priorities_; 131 bool has_valid_tile_priorities_;
131 bool use_set_valid_tile_priorities_flag_; 132 bool use_set_valid_tile_priorities_flag_;
132 }; 133 };
133 134
134 } // namespace cc 135 } // namespace cc
135 136
136 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 137 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_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