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

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

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_widget.h » ('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) 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 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 529
530 void RenderWidgetCompositor::Layout() { 530 void RenderWidgetCompositor::Layout() {
531 widget_->webwidget()->layout(); 531 widget_->webwidget()->layout();
532 } 532 }
533 533
534 void RenderWidgetCompositor::ApplyScrollAndScale(gfx::Vector2d scroll_delta, 534 void RenderWidgetCompositor::ApplyScrollAndScale(gfx::Vector2d scroll_delta,
535 float page_scale) { 535 float page_scale) {
536 widget_->webwidget()->applyScrollAndScale(scroll_delta, page_scale); 536 widget_->webwidget()->applyScrollAndScale(scroll_delta, page_scale);
537 } 537 }
538 538
539 scoped_ptr<cc::OutputSurface> RenderWidgetCompositor::CreateOutputSurface() { 539 scoped_ptr<cc::OutputSurface> RenderWidgetCompositor::CreateOutputSurface(
540 return widget_->CreateOutputSurface(); 540 bool fallback) {
541 return widget_->CreateOutputSurface(fallback);
541 } 542 }
542 543
543 void RenderWidgetCompositor::DidInitializeOutputSurface(bool success) { 544 void RenderWidgetCompositor::DidInitializeOutputSurface(bool success) {
544 if (!success) 545 if (!success)
545 widget_->webwidget()->didExitCompositingMode(); 546 widget_->webwidget()->didExitCompositingMode();
546 } 547 }
547 548
548 void RenderWidgetCompositor::WillCommit() { 549 void RenderWidgetCompositor::WillCommit() {
549 widget_->InstrumentWillComposite(); 550 widget_->InstrumentWillComposite();
550 } 551 }
(...skipping 21 matching lines...) Expand all
572 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 573 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
573 } 574 }
574 575
575 scoped_refptr<cc::ContextProvider> 576 scoped_refptr<cc::ContextProvider>
576 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 577 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
577 return RenderThreadImpl::current()-> 578 return RenderThreadImpl::current()->
578 OffscreenContextProviderForCompositorThread(); 579 OffscreenContextProviderForCompositorThread();
579 } 580 }
580 581
581 } // namespace content 582 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698