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

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

Issue 9693031: mac: fix flash videos with --disable-composited-core-animation-plugins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/plugin/webplugin_proxy.cc ('k') | content/renderer/webplugin_delegate_proxy.cc » ('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 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after
4906 // Return an invalid handle if Send() fails. 4906 // Return an invalid handle if Send() fails.
4907 return TransportDIB::DefaultHandleValue(); 4907 return TransportDIB::DefaultHandleValue();
4908 } 4908 }
4909 4909
4910 void RenderViewImpl::AcceleratedSurfaceFreeTransportDIB( 4910 void RenderViewImpl::AcceleratedSurfaceFreeTransportDIB(
4911 TransportDIB::Id dib_id) { 4911 TransportDIB::Id dib_id) {
4912 Send(new ViewHostMsg_FreeTransportDIB(dib_id)); 4912 Send(new ViewHostMsg_FreeTransportDIB(dib_id));
4913 } 4913 }
4914 4914
4915 void RenderViewImpl::AcceleratedSurfaceBuffersSwapped( 4915 void RenderViewImpl::AcceleratedSurfaceBuffersSwapped(
4916 gfx::PluginWindowHandle window, uint64 surface_id) { 4916 gfx::PluginWindowHandle window, uint64 surface_handle) {
4917 Send(new ViewHostMsg_AcceleratedSurfaceBuffersSwapped( 4917 Send(new ViewHostMsg_AcceleratedSurfaceBuffersSwapped(
4918 routing_id(), window, surface_id)); 4918 routing_id(), window, surface_handle));
4919 } 4919 }
4920 #endif 4920 #endif
4921 4921
4922 bool RenderViewImpl::ScheduleFileChooser( 4922 bool RenderViewImpl::ScheduleFileChooser(
4923 const content::FileChooserParams& params, 4923 const content::FileChooserParams& params,
4924 WebFileChooserCompletion* completion) { 4924 WebFileChooserCompletion* completion) {
4925 static const size_t kMaximumPendingFileChooseRequests = 4; 4925 static const size_t kMaximumPendingFileChooseRequests = 4;
4926 if (file_chooser_completions_.size() > kMaximumPendingFileChooseRequests) { 4926 if (file_chooser_completions_.size() > kMaximumPendingFileChooseRequests) {
4927 // This sanity check prevents too many file choose requests from getting 4927 // This sanity check prevents too many file choose requests from getting
4928 // queued which could DoS the user. Getting these is most likely a 4928 // queued which could DoS the user. Getting these is most likely a
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
5130 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5130 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5131 return !!RenderThreadImpl::current()->compositor_thread(); 5131 return !!RenderThreadImpl::current()->compositor_thread();
5132 } 5132 }
5133 5133
5134 void RenderViewImpl::OnJavaBridgeInit() { 5134 void RenderViewImpl::OnJavaBridgeInit() {
5135 DCHECK(!java_bridge_dispatcher_.get()); 5135 DCHECK(!java_bridge_dispatcher_.get());
5136 #if defined(ENABLE_JAVA_BRIDGE) 5136 #if defined(ENABLE_JAVA_BRIDGE)
5137 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5137 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5138 #endif 5138 #endif
5139 } 5139 }
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | content/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698