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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Nit Created 7 years, 2 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/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void set_needs_update_draw_properties() { 157 void set_needs_update_draw_properties() {
158 needs_update_draw_properties_ = true; 158 needs_update_draw_properties_ = true;
159 } 159 }
160 bool needs_update_draw_properties() const { 160 bool needs_update_draw_properties() const {
161 return needs_update_draw_properties_; 161 return needs_update_draw_properties_;
162 } 162 }
163 163
164 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } 164 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; }
165 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } 165 bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
166 166
167 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; }
168
167 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); 169 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue);
168 170
169 const LayerImplList& RenderSurfaceLayerList() const; 171 const LayerImplList& RenderSurfaceLayerList() const;
170 172
171 // These return the size of the root scrollable area and the size of 173 // These return the size of the root scrollable area and the size of
172 // the user-visible scrolling viewport, in CSS layout coordinates. 174 // the user-visible scrolling viewport, in CSS layout coordinates.
173 gfx::Size ScrollableSize() const; 175 gfx::Size ScrollableSize() const;
174 gfx::SizeF ScrollableViewportSize() const; 176 gfx::SizeF ScrollableViewportSize() const;
175 177
176 LayerImpl* LayerById(int id); 178 LayerImpl* LayerById(int id);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 LayerImplList render_surface_layer_list_; 256 LayerImplList render_surface_layer_list_;
255 257
256 bool contents_textures_purged_; 258 bool contents_textures_purged_;
257 bool viewport_size_invalid_; 259 bool viewport_size_invalid_;
258 bool needs_update_draw_properties_; 260 bool needs_update_draw_properties_;
259 261
260 // In impl-side painting mode, this is true when the tree may contain 262 // In impl-side painting mode, this is true when the tree may contain
261 // structural differences relative to the active tree. 263 // structural differences relative to the active tree.
262 bool needs_full_tree_sync_; 264 bool needs_full_tree_sync_;
263 265
266 bool next_activation_forces_redraw_;
267
264 ui::LatencyInfo latency_info_; 268 ui::LatencyInfo latency_info_;
265 269
266 UIResourceRequestQueue ui_resource_request_queue_; 270 UIResourceRequestQueue ui_resource_request_queue_;
267 271
268 private: 272 private:
269 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 273 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
270 }; 274 };
271 275
272 } // namespace cc 276 } // namespace cc
273 277
274 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 278 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698