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

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

Issue 475233002: cc: Avoid redraw for missing tile outside visible rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove skip_viewport_for_tile_priority_check 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 has_valid_tile_priorities_ = has_valid_priorities; 51 has_valid_tile_priorities_ = has_valid_priorities;
52 use_set_valid_tile_priorities_flag_ = true; 52 use_set_valid_tile_priorities_flag_ = true;
53 } 53 }
54 54
55 using PictureLayerImpl::AddTiling; 55 using PictureLayerImpl::AddTiling;
56 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; 56 using PictureLayerImpl::CleanUpTilingsOnActiveLayer;
57 using PictureLayerImpl::CanHaveTilings; 57 using PictureLayerImpl::CanHaveTilings;
58 using PictureLayerImpl::MarkVisibleResourcesAsRequired; 58 using PictureLayerImpl::MarkVisibleResourcesAsRequired;
59 using PictureLayerImpl::DoPostCommitInitializationIfNeeded; 59 using PictureLayerImpl::DoPostCommitInitializationIfNeeded;
60 using PictureLayerImpl::MinimumContentsScale; 60 using PictureLayerImpl::MinimumContentsScale;
61 using PictureLayerImpl::GetViewportForTilePriorityInContentSpace;
61 using PictureLayerImpl::SanityCheckTilingState; 62 using PictureLayerImpl::SanityCheckTilingState;
62 63
63 using PictureLayerImpl::UpdateIdealScales; 64 using PictureLayerImpl::UpdateIdealScales;
64 using PictureLayerImpl::MaximumTilingContentsScale; 65 using PictureLayerImpl::MaximumTilingContentsScale;
65 66
66 void SetNeedsPostCommitInitialization() { 67 void SetNeedsPostCommitInitialization() {
67 needs_post_commit_initialization_ = true; 68 needs_post_commit_initialization_ = true;
68 } 69 }
69 70
70 bool needs_post_commit_initialization() const { 71 bool needs_post_commit_initialization() const {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 size_t append_quads_count_; 124 size_t append_quads_count_;
124 size_t did_become_active_call_count_; 125 size_t did_become_active_call_count_;
125 bool has_valid_tile_priorities_; 126 bool has_valid_tile_priorities_;
126 bool use_set_valid_tile_priorities_flag_; 127 bool use_set_valid_tile_priorities_flag_;
127 }; 128 };
128 129
129 } // namespace cc 130 } // namespace cc
130 131
131 #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