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

Side by Side Diff: content/renderer/webplugin_delegate_proxy.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/renderer/render_view_impl.cc ('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) 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/webplugin_delegate_proxy.h" 5 #include "content/renderer/webplugin_delegate_proxy.h"
6 6
7 #if defined(TOOLKIT_USES_GTK) 7 #if defined(TOOLKIT_USES_GTK)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #elif defined(USE_X11) 9 #elif defined(USE_X11)
10 #include <cairo/cairo.h> 10 #include <cairo/cairo.h>
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 *dib_handle = TransportDIB::DefaultHandleValue(); 1401 *dib_handle = TransportDIB::DefaultHandleValue();
1402 } 1402 }
1403 1403
1404 void WebPluginDelegateProxy::OnAcceleratedSurfaceFreeTransportDIB( 1404 void WebPluginDelegateProxy::OnAcceleratedSurfaceFreeTransportDIB(
1405 TransportDIB::Id dib_id) { 1405 TransportDIB::Id dib_id) {
1406 if (render_view_) 1406 if (render_view_)
1407 render_view_->AcceleratedSurfaceFreeTransportDIB(dib_id); 1407 render_view_->AcceleratedSurfaceFreeTransportDIB(dib_id);
1408 } 1408 }
1409 1409
1410 void WebPluginDelegateProxy::OnAcceleratedSurfaceBuffersSwapped( 1410 void WebPluginDelegateProxy::OnAcceleratedSurfaceBuffersSwapped(
1411 gfx::PluginWindowHandle window, uint64 surface_id) { 1411 gfx::PluginWindowHandle window, uint64 surface_handle) {
1412 if (render_view_) 1412 if (render_view_)
1413 render_view_->AcceleratedSurfaceBuffersSwapped(window, surface_id); 1413 render_view_->AcceleratedSurfaceBuffersSwapped(window, surface_handle);
1414 } 1414 }
1415 1415
1416 void WebPluginDelegateProxy::OnAcceleratedPluginEnabledRendering() { 1416 void WebPluginDelegateProxy::OnAcceleratedPluginEnabledRendering() {
1417 uses_compositor_ = true; 1417 uses_compositor_ = true;
1418 OnSetWindow(NULL); 1418 OnSetWindow(NULL);
1419 } 1419 }
1420 1420
1421 void WebPluginDelegateProxy::OnAcceleratedPluginAllocatedIOSurface( 1421 void WebPluginDelegateProxy::OnAcceleratedPluginAllocatedIOSurface(
1422 int32 width, 1422 int32 width,
1423 int32 height, 1423 int32 height,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 } 1456 }
1457 #endif 1457 #endif
1458 1458
1459 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, 1459 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow,
1460 int resource_id) { 1460 int resource_id) {
1461 if (!plugin_) 1461 if (!plugin_)
1462 return; 1462 return;
1463 1463
1464 plugin_->URLRedirectResponse(allow, resource_id); 1464 plugin_->URLRedirectResponse(allow, resource_id);
1465 } 1465 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698