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

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

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 | « ui/compositor/compositor.h ('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 (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 #include "ui/compositor/compositor.h" 5 #include "ui/compositor/compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <deque> 10 #include <deque>
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 host_->SetNeedsRedraw(); 335 host_->SetNeedsRedraw();
336 host_->SetNeedsCommit(); 336 host_->SetNeedsCommit();
337 } 337 }
338 338
339 void Compositor::ScheduleRedrawRect(const gfx::Rect& damage_rect) { 339 void Compositor::ScheduleRedrawRect(const gfx::Rect& damage_rect) {
340 // TODO(enne): Make this not commit. See ScheduleFullRedraw. 340 // TODO(enne): Make this not commit. See ScheduleFullRedraw.
341 host_->SetNeedsRedrawRect(damage_rect); 341 host_->SetNeedsRedrawRect(damage_rect);
342 host_->SetNeedsCommit(); 342 host_->SetNeedsCommit();
343 } 343 }
344 344
345 void Compositor::FinishAllRendering() {
346 host_->FinishAllRendering();
347 }
348
349 void Compositor::DisableSwapUntilResize() { 345 void Compositor::DisableSwapUntilResize() {
350 host_->FinishAllRendering();
351 context_factory_->ResizeDisplay(this, gfx::Size()); 346 context_factory_->ResizeDisplay(this, gfx::Size());
352 } 347 }
353 348
354 void Compositor::SetLatencyInfo(const ui::LatencyInfo& latency_info) { 349 void Compositor::SetLatencyInfo(const ui::LatencyInfo& latency_info) {
355 std::unique_ptr<cc::SwapPromise> swap_promise( 350 std::unique_ptr<cc::SwapPromise> swap_promise(
356 new cc::LatencyInfoSwapPromise(latency_info)); 351 new cc::LatencyInfoSwapPromise(latency_info));
357 host_->QueueSwapPromise(std::move(swap_promise)); 352 host_->QueueSwapPromise(std::move(swap_promise));
358 } 353 }
359 354
360 void Compositor::SetScaleAndSize(float scale, const gfx::Size& size_in_pixel) { 355 void Compositor::SetScaleAndSize(float scale, const gfx::Size& size_in_pixel) {
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 observer_list_, 569 observer_list_,
575 OnCompositingLockStateChanged(this)); 570 OnCompositingLockStateChanged(this));
576 } 571 }
577 572
578 void Compositor::CancelCompositorLock() { 573 void Compositor::CancelCompositorLock() {
579 if (compositor_lock_) 574 if (compositor_lock_)
580 compositor_lock_->CancelLock(); 575 compositor_lock_->CancelLock();
581 } 576 }
582 577
583 } // namespace ui 578 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698