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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 53153006: Simplify rate limiting since it's main thread shared context only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu/render_widget_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 void RenderWidgetCompositor::ScheduleComposite() { 641 void RenderWidgetCompositor::ScheduleComposite() {
642 if (!suppress_schedule_composite_) 642 if (!suppress_schedule_composite_)
643 widget_->scheduleComposite(); 643 widget_->scheduleComposite();
644 } 644 }
645 645
646 scoped_refptr<cc::ContextProvider> 646 scoped_refptr<cc::ContextProvider>
647 RenderWidgetCompositor::OffscreenContextProvider() { 647 RenderWidgetCompositor::OffscreenContextProvider() {
648 return RenderThreadImpl::current()->OffscreenCompositorContextProvider(); 648 return RenderThreadImpl::current()->OffscreenCompositorContextProvider();
649 } 649 }
650 650
651 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
652 cc::ContextProvider* provider =
653 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
654 provider->Context3d()->rateLimitOffscreenContextCHROMIUM();
655 }
656
651 } // namespace content 657 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698