| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/webplugin_delegate_proxy.h" | 5 #include "chrome/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 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 if (render_view_) | 1499 if (render_view_) |
| 1500 render_view_->AcceleratedSurfaceSetIOSurface(window, width, height, | 1500 render_view_->AcceleratedSurfaceSetIOSurface(window, width, height, |
| 1501 io_surface_identifier); | 1501 io_surface_identifier); |
| 1502 } | 1502 } |
| 1503 | 1503 |
| 1504 void WebPluginDelegateProxy::OnAcceleratedSurfaceSetTransportDIB( | 1504 void WebPluginDelegateProxy::OnAcceleratedSurfaceSetTransportDIB( |
| 1505 gfx::PluginWindowHandle window, | 1505 gfx::PluginWindowHandle window, |
| 1506 int32 width, | 1506 int32 width, |
| 1507 int32 height, | 1507 int32 height, |
| 1508 TransportDIB::Handle transport_dib) { | 1508 TransportDIB::Handle transport_dib) { |
| 1509 TransportDIB::ScopedHandle scoped_dib_handle(transport_dib); |
| 1509 if (render_view_) | 1510 if (render_view_) |
| 1510 render_view_->AcceleratedSurfaceSetTransportDIB(window, width, height, | 1511 render_view_->AcceleratedSurfaceSetTransportDIB(window, width, height, |
| 1511 transport_dib); | 1512 scoped_dib_handle.release()); |
| 1512 } | 1513 } |
| 1513 | 1514 |
| 1514 void WebPluginDelegateProxy::OnAcceleratedSurfaceAllocTransportDIB( | 1515 void WebPluginDelegateProxy::OnAcceleratedSurfaceAllocTransportDIB( |
| 1515 size_t size, | 1516 size_t size, |
| 1516 TransportDIB::Handle* dib_handle) { | 1517 TransportDIB::Handle* dib_handle) { |
| 1517 if (render_view_) | 1518 if (render_view_) |
| 1518 *dib_handle = render_view_->AcceleratedSurfaceAllocTransportDIB(size); | 1519 *dib_handle = render_view_->AcceleratedSurfaceAllocTransportDIB(size); |
| 1519 else | 1520 else |
| 1520 *dib_handle = TransportDIB::DefaultHandleValue(); | 1521 *dib_handle = TransportDIB::DefaultHandleValue(); |
| 1521 } | 1522 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1549 if (index->mime_type == "application/x-vnd.moveplayer.qm" || | 1550 if (index->mime_type == "application/x-vnd.moveplayer.qm" || |
| 1550 index->mime_type == "application/x-vnd.moveplay2.qm" || | 1551 index->mime_type == "application/x-vnd.moveplay2.qm" || |
| 1551 index->mime_type == "application/x-vnd.movenetworks.qm" || | 1552 index->mime_type == "application/x-vnd.movenetworks.qm" || |
| 1552 index->mime_type == "application/x-vnd.mnplayer.qm") { | 1553 index->mime_type == "application/x-vnd.mnplayer.qm") { |
| 1553 return true; | 1554 return true; |
| 1554 } | 1555 } |
| 1555 } | 1556 } |
| 1556 return false; | 1557 return false; |
| 1557 } | 1558 } |
| 1558 #endif | 1559 #endif |
| OLD | NEW |