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

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

Issue 2175553002: Raster PictureLayerTiling with fractional translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: combined Created 3 years, 8 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; 107 using PictureLayerImpl::CleanUpTilingsOnActiveLayer;
108 using PictureLayerImpl::CanHaveTilings; 108 using PictureLayerImpl::CanHaveTilings;
109 using PictureLayerImpl::MinimumContentsScale; 109 using PictureLayerImpl::MinimumContentsScale;
110 using PictureLayerImpl::SanityCheckTilingState; 110 using PictureLayerImpl::SanityCheckTilingState;
111 using PictureLayerImpl::UpdateRasterSource; 111 using PictureLayerImpl::UpdateRasterSource;
112 112
113 using PictureLayerImpl::UpdateIdealScales; 113 using PictureLayerImpl::UpdateIdealScales;
114 using PictureLayerImpl::MaximumTilingContentsScale; 114 using PictureLayerImpl::MaximumTilingContentsScale;
115 115
116 void AddTilingUntilNextDraw(float scale) { 116 void AddTilingUntilNextDraw(float scale) {
117 last_append_quads_tilings_.push_back(AddTiling(scale)); 117 last_append_quads_tilings_.push_back(
118 AddTiling(ScaleTranslate2d(scale, gfx::Vector2dF())));
118 } 119 }
119 120
120 float raster_page_scale() const { return raster_page_scale_; } 121 float raster_page_scale() const { return raster_page_scale_; }
121 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } 122 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; }
122 123
123 float ideal_contents_scale() const { return ideal_contents_scale_; } 124 float ideal_contents_scale() const { return ideal_contents_scale_; }
124 float raster_contents_scale() const { return raster_contents_scale_; } 125 float raster_contents_scale() const { return raster_contents_scale_; }
125 126
126 PictureLayerTiling* HighResTiling() const; 127 PictureLayerTiling* HighResTiling() const;
127 PictureLayerTiling* LowResTiling() const; 128 PictureLayerTiling* LowResTiling() const;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 size_t did_become_active_call_count_ = 0; 190 size_t did_become_active_call_count_ = 0;
190 bool has_valid_tile_priorities_ = false; 191 bool has_valid_tile_priorities_ = false;
191 bool use_set_valid_tile_priorities_flag_ = false; 192 bool use_set_valid_tile_priorities_flag_ = false;
192 size_t release_resources_count_ = 0; 193 size_t release_resources_count_ = 0;
193 size_t release_tile_resources_count_ = 0; 194 size_t release_tile_resources_count_ = 0;
194 }; 195 };
195 196
196 } // namespace cc 197 } // namespace cc
197 198
198 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 199 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/raster/zero_copy_raster_buffer_provider.cc ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698