| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |