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

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

Issue 505723002: Revert of cc: Don't consider tiles at the layers raster_contents_scale incomplete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 needs_post_commit_initialization_ = true; 68 needs_post_commit_initialization_ = true;
69 } 69 }
70 70
71 bool needs_post_commit_initialization() const { 71 bool needs_post_commit_initialization() const {
72 return needs_post_commit_initialization_; 72 return needs_post_commit_initialization_;
73 } 73 }
74 74
75 float raster_page_scale() const { return raster_page_scale_; } 75 float raster_page_scale() const { return raster_page_scale_; }
76 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } 76 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; }
77 77
78 float ideal_contents_scale() const { return ideal_contents_scale_; }
79 float raster_contents_scale() const { return raster_contents_scale_; }
80
81 PictureLayerTiling* HighResTiling() const; 78 PictureLayerTiling* HighResTiling() const;
82 PictureLayerTiling* LowResTiling() const; 79 PictureLayerTiling* LowResTiling() const;
83 size_t num_tilings() const { return tilings_->num_tilings(); } 80 size_t num_tilings() const { return tilings_->num_tilings(); }
84 81
85 PictureLayerImpl* twin_layer() { return twin_layer_; } 82 PictureLayerImpl* twin_layer() { return twin_layer_; }
86 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; } 83 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; }
87 PictureLayerTilingSet* tilings() { return tilings_.get(); } 84 PictureLayerTilingSet* tilings() { return tilings_.get(); }
88 PicturePileImpl* pile() { return pile_.get(); } 85 PicturePileImpl* pile() { return pile_.get(); }
89 size_t append_quads_count() { return append_quads_count_; } 86 size_t append_quads_count() { return append_quads_count_; }
90 87
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 123
127 size_t append_quads_count_; 124 size_t append_quads_count_;
128 size_t did_become_active_call_count_; 125 size_t did_become_active_call_count_;
129 bool has_valid_tile_priorities_; 126 bool has_valid_tile_priorities_;
130 bool use_set_valid_tile_priorities_flag_; 127 bool use_set_valid_tile_priorities_flag_;
131 }; 128 };
132 129
133 } // namespace cc 130 } // namespace cc
134 131
135 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 132 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698