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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 11796003: Remove RenderWidget::WebWidgetHandlesCompositorScheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: check for web_layer_tree_view_ in scheduleComposite since RenderWidgetFullscreenPepper is composite… Created 7 years, 11 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/render_view_impl.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) 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 5922 matching lines...) Expand 10 before | Expand all | Expand 10 after
5933 for (plugin_it = plugin_delegates_.begin(); 5933 for (plugin_it = plugin_delegates_.begin();
5934 plugin_it != plugin_delegates_.end(); ++plugin_it) { 5934 plugin_it != plugin_delegates_.end(); ++plugin_it) {
5935 (*plugin_it)->SetContainerVisibility(true); 5935 (*plugin_it)->SetContainerVisibility(true);
5936 } 5936 }
5937 #endif // OS_MACOSX 5937 #endif // OS_MACOSX
5938 } 5938 }
5939 5939
5940 bool RenderViewImpl::SupportsAsynchronousSwapBuffers() { 5940 bool RenderViewImpl::SupportsAsynchronousSwapBuffers() {
5941 // Contexts using the command buffer support asynchronous swapbuffers. 5941 // Contexts using the command buffer support asynchronous swapbuffers.
5942 // See RenderViewImpl::createOutputSurface(). 5942 // See RenderViewImpl::createOutputSurface().
5943 if (WebWidgetHandlesCompositorScheduling() || 5943 if (RenderThreadImpl::current()->compositor_thread() ||
5944 CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessWebGL)) 5944 CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessWebGL))
5945 return false; 5945 return false;
5946 5946
5947 return true; 5947 return true;
5948 } 5948 }
5949 5949
5950 bool RenderViewImpl::ForceCompositingModeEnabled() { 5950 bool RenderViewImpl::ForceCompositingModeEnabled() {
5951 return webkit_preferences_.force_compositing_mode; 5951 return webkit_preferences_.force_compositing_mode;
5952 } 5952 }
5953 5953
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
6501 6501
6502 void RenderViewImpl::OnEnableViewSourceMode() { 6502 void RenderViewImpl::OnEnableViewSourceMode() {
6503 if (!webview()) 6503 if (!webview())
6504 return; 6504 return;
6505 WebFrame* main_frame = webview()->mainFrame(); 6505 WebFrame* main_frame = webview()->mainFrame();
6506 if (!main_frame) 6506 if (!main_frame)
6507 return; 6507 return;
6508 main_frame->enableViewSourceMode(true); 6508 main_frame->enableViewSourceMode(true);
6509 } 6509 }
6510 6510
6511 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
6512 return !!RenderThreadImpl::current()->compositor_thread();
6513 }
6514
6515 void RenderViewImpl::OnJavaBridgeInit() { 6511 void RenderViewImpl::OnJavaBridgeInit() {
6516 DCHECK(!java_bridge_dispatcher_); 6512 DCHECK(!java_bridge_dispatcher_);
6517 #if defined(ENABLE_JAVA_BRIDGE) 6513 #if defined(ENABLE_JAVA_BRIDGE)
6518 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 6514 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
6519 #endif 6515 #endif
6520 } 6516 }
6521 6517
6522 void RenderViewImpl::OnDisownOpener() { 6518 void RenderViewImpl::OnDisownOpener() {
6523 if (!webview()) 6519 if (!webview())
6524 return; 6520 return;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
6592 } 6588 }
6593 #endif 6589 #endif
6594 6590
6595 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6591 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6596 TransportDIB::Handle dib_handle) { 6592 TransportDIB::Handle dib_handle) {
6597 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6593 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6598 RenderProcess::current()->ReleaseTransportDIB(dib); 6594 RenderProcess::current()->ReleaseTransportDIB(dib);
6599 } 6595 }
6600 6596
6601 } // namespace content 6597 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698