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

Side by Side Diff: cc/trees/single_thread_proxy.cc

Issue 1341423006: Removing GL context rate limiting feature and related wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/single_thread_proxy.h" 5 #include "cc/trees/single_thread_proxy.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "cc/debug/benchmark_instrumentation.h" 10 #include "cc/debug/benchmark_instrumentation.h"
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 // DoComposite could abort, but because this is a synchronous composite 583 // DoComposite could abort, but because this is a synchronous composite
584 // another draw will never be scheduled, so break remaining promises. 584 // another draw will never be scheduled, so break remaining promises.
585 layer_tree_host_impl_->active_tree()->BreakSwapPromises( 585 layer_tree_host_impl_->active_tree()->BreakSwapPromises(
586 SwapPromise::SWAP_FAILS); 586 SwapPromise::SWAP_FAILS);
587 587
588 DidFinishImplFrame(); 588 DidFinishImplFrame();
589 } 589 }
590 } 590 }
591 591
592 void SingleThreadProxy::ForceSerializeOnSwapBuffers() {
593 {
594 DebugScopedSetImplThread impl(this);
595 if (layer_tree_host_impl_->renderer()) {
596 DCHECK(!layer_tree_host_->output_surface_lost());
597 layer_tree_host_impl_->renderer()->DoNoOp();
598 }
599 }
600 }
601
602 bool SingleThreadProxy::SupportsImplScrolling() const { 592 bool SingleThreadProxy::SupportsImplScrolling() const {
603 return false; 593 return false;
604 } 594 }
605 595
606 bool SingleThreadProxy::ShouldComposite() const { 596 bool SingleThreadProxy::ShouldComposite() const {
607 DCHECK(Proxy::IsImplThread()); 597 DCHECK(Proxy::IsImplThread());
608 return layer_tree_host_impl_->visible() && 598 return layer_tree_host_impl_->visible() &&
609 layer_tree_host_impl_->CanDraw(); 599 layer_tree_host_impl_->CanDraw();
610 } 600 }
611 601
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 << "DidFinishImplFrame called while not inside an impl frame!"; 892 << "DidFinishImplFrame called while not inside an impl frame!";
903 inside_impl_frame_ = false; 893 inside_impl_frame_ = false;
904 #endif 894 #endif
905 } 895 }
906 896
907 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { 897 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
908 layer_tree_host_->SendBeginFramesToChildren(args); 898 layer_tree_host_->SendBeginFramesToChildren(args);
909 } 899 }
910 900
911 } // namespace cc 901 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698