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

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

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix Created 6 years, 4 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/test/fake_output_surface_client.h ('k') | cc/test/layer_tree_pixel_test.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 PictureLayerTilingSet* tilings() { return tilings_.get(); } 72 PictureLayerTilingSet* tilings() { return tilings_.get(); }
73 PicturePileImpl* pile() { return pile_.get(); } 73 PicturePileImpl* pile() { return pile_.get(); }
74 size_t append_quads_count() { return append_quads_count_; } 74 size_t append_quads_count() { return append_quads_count_; }
75 75
76 const Region& invalidation() const { return invalidation_; } 76 const Region& invalidation() const { return invalidation_; }
77 void set_invalidation(const Region& region) { invalidation_ = region; } 77 void set_invalidation(const Region& region) { invalidation_ = region; }
78 78
79 gfx::Rect visible_rect_for_tile_priority() { 79 gfx::Rect visible_rect_for_tile_priority() {
80 return visible_rect_for_tile_priority_; 80 return visible_rect_for_tile_priority_;
81 } 81 }
82 gfx::Size viewport_size_for_tile_priority() { 82 gfx::Rect viewport_rect_for_tile_priority() {
83 return viewport_size_for_tile_priority_; 83 return viewport_rect_for_tile_priority_;
84 } 84 }
85 gfx::Transform screen_space_transform_for_tile_priority() { 85 gfx::Transform screen_space_transform_for_tile_priority() {
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();
(...skipping 14 matching lines...) Expand all
108 108
109 private: 109 private:
110 gfx::Size fixed_tile_size_; 110 gfx::Size fixed_tile_size_;
111 111
112 size_t append_quads_count_; 112 size_t append_quads_count_;
113 }; 113 };
114 114
115 } // namespace cc 115 } // namespace cc
116 116
117 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 117 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface_client.h ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698