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

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

Issue 676953003: cc: Always keep the PictureLayerImpl::twin_layer_ pointer valid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: twins: anothercheck Created 6 years, 1 month 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/resources/tile_manager_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 float raster_page_scale() const { return raster_page_scale_; } 73 float raster_page_scale() const { return raster_page_scale_; }
74 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } 74 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; }
75 75
76 float ideal_contents_scale() const { return ideal_contents_scale_; } 76 float ideal_contents_scale() const { return ideal_contents_scale_; }
77 float raster_contents_scale() const { return raster_contents_scale_; } 77 float raster_contents_scale() const { return raster_contents_scale_; }
78 78
79 PictureLayerTiling* HighResTiling() const; 79 PictureLayerTiling* HighResTiling() const;
80 PictureLayerTiling* LowResTiling() const; 80 PictureLayerTiling* LowResTiling() const;
81 size_t num_tilings() const { return tilings_->num_tilings(); } 81 size_t num_tilings() const { return tilings_->num_tilings(); }
82 82
83 PictureLayerImpl* twin_layer() { return twin_layer_; }
84 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; }
85 PictureLayerTilingSet* tilings() { return tilings_.get(); } 83 PictureLayerTilingSet* tilings() { return tilings_.get(); }
86 PicturePileImpl* pile() { return pile_.get(); } 84 PicturePileImpl* pile() { return pile_.get(); }
85 void SetPile(scoped_refptr<PicturePileImpl> pile);
87 size_t append_quads_count() { return append_quads_count_; } 86 size_t append_quads_count() { return append_quads_count_; }
88 87
89 const Region& invalidation() const { return invalidation_; } 88 const Region& invalidation() const { return invalidation_; }
90 void set_invalidation(const Region& region) { invalidation_ = region; } 89 void set_invalidation(const Region& region) { invalidation_ = region; }
91 90
92 gfx::Rect visible_rect_for_tile_priority() { 91 gfx::Rect visible_rect_for_tile_priority() {
93 return visible_rect_for_tile_priority_; 92 return visible_rect_for_tile_priority_;
94 } 93 }
95 94
96 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } 95 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 size_t append_quads_count_; 128 size_t append_quads_count_;
130 size_t did_become_active_call_count_; 129 size_t did_become_active_call_count_;
131 bool has_valid_tile_priorities_; 130 bool has_valid_tile_priorities_;
132 bool use_set_valid_tile_priorities_flag_; 131 bool use_set_valid_tile_priorities_flag_;
133 size_t release_resources_count_; 132 size_t release_resources_count_;
134 }; 133 };
135 134
136 } // namespace cc 135 } // namespace cc
137 136
138 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 137 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/resources/tile_manager_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