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

Side by Side Diff: ui/compositor/compositor.h

Issue 2231093003: cc: Remove FinishAllRendering, as it doesn't do anything anymore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finishallrendering: . Created 4 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
« no previous file with comments | « cc/trees/threaded_channel.cc ('k') | ui/compositor/compositor.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 // Where possible, draws are scissored to a damage region calculated from 237 // Where possible, draws are scissored to a damage region calculated from
238 // changes to layer properties. This bypasses that and indicates that 238 // changes to layer properties. This bypasses that and indicates that
239 // the whole frame needs to be drawn. 239 // the whole frame needs to be drawn.
240 void ScheduleFullRedraw(); 240 void ScheduleFullRedraw();
241 241
242 // Schedule redraw and append damage_rect to the damage region calculated 242 // Schedule redraw and append damage_rect to the damage region calculated
243 // from changes to layer properties. 243 // from changes to layer properties.
244 void ScheduleRedrawRect(const gfx::Rect& damage_rect); 244 void ScheduleRedrawRect(const gfx::Rect& damage_rect);
245 245
246 // Finishes all outstanding rendering and disables swapping on this surface.
247 void FinishAllRendering();
248
249 // Finishes all outstanding rendering and disables swapping on this surface 246 // Finishes all outstanding rendering and disables swapping on this surface
250 // until it is resized. 247 // until it is resized.
251 void DisableSwapUntilResize(); 248 void DisableSwapUntilResize();
252 249
253 void SetLatencyInfo(const LatencyInfo& latency_info); 250 void SetLatencyInfo(const LatencyInfo& latency_info);
254 251
255 // Sets the compositor's device scale factor and size. 252 // Sets the compositor's device scale factor and size.
256 void SetScaleAndSize(float scale, const gfx::Size& size_in_pixel); 253 void SetScaleAndSize(float scale, const gfx::Size& size_in_pixel);
257 254
258 // Set the output color profile into which this compositor should render. 255 // Set the output color profile into which this compositor should render.
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 scoped_refptr<cc::AnimationTimeline> animation_timeline_; 418 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
422 419
423 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 420 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
424 421
425 DISALLOW_COPY_AND_ASSIGN(Compositor); 422 DISALLOW_COPY_AND_ASSIGN(Compositor);
426 }; 423 };
427 424
428 } // namespace ui 425 } // namespace ui
429 426
430 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 427 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « cc/trees/threaded_channel.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698