OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/plugin/webplugin_proxy.h" | 5 #include "chrome/plugin/webplugin_proxy.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include "app/win_util.h" | 10 #include "app/win_util.h" |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 Send(new PluginHostMsg_BindFakePluginWindowHandle(route_id_, opaque)); | 662 Send(new PluginHostMsg_BindFakePluginWindowHandle(route_id_, opaque)); |
663 } | 663 } |
664 | 664 |
665 WebPluginAcceleratedSurface* WebPluginProxy::GetAcceleratedSurface() { | 665 WebPluginAcceleratedSurface* WebPluginProxy::GetAcceleratedSurface() { |
666 if (!accelerated_surface_.get()) | 666 if (!accelerated_surface_.get()) |
667 accelerated_surface_.reset(new WebPluginAcceleratedSurfaceProxy(this)); | 667 accelerated_surface_.reset(new WebPluginAcceleratedSurfaceProxy(this)); |
668 return accelerated_surface_.get(); | 668 return accelerated_surface_.get(); |
669 } | 669 } |
670 | 670 |
671 void WebPluginProxy::AcceleratedFrameBuffersDidSwap( | 671 void WebPluginProxy::AcceleratedFrameBuffersDidSwap( |
672 gfx::PluginWindowHandle window) { | 672 gfx::PluginWindowHandle window, uint64 surface_id) { |
673 Send(new PluginHostMsg_AcceleratedSurfaceBuffersSwapped(route_id_, window)); | 673 Send(new PluginHostMsg_AcceleratedSurfaceBuffersSwapped( |
| 674 route_id_, window, surface_id)); |
674 } | 675 } |
675 | 676 |
676 void WebPluginProxy::SetAcceleratedSurface( | 677 void WebPluginProxy::SetAcceleratedSurface( |
677 gfx::PluginWindowHandle window, | 678 gfx::PluginWindowHandle window, |
678 const gfx::Size& size, | 679 const gfx::Size& size, |
679 uint64 accelerated_surface_identifier) { | 680 uint64 accelerated_surface_identifier) { |
680 Send(new PluginHostMsg_AcceleratedSurfaceSetIOSurface( | 681 Send(new PluginHostMsg_AcceleratedSurfaceSetIOSurface( |
681 route_id_, window, size.width(), size.height(), | 682 route_id_, window, size.width(), size.height(), |
682 accelerated_surface_identifier)); | 683 accelerated_surface_identifier)); |
683 } | 684 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 while (index != resource_clients_.end()) { | 718 while (index != resource_clients_.end()) { |
718 WebPluginResourceClient* client = (*index).second; | 719 WebPluginResourceClient* client = (*index).second; |
719 | 720 |
720 if (client == resource_client) { | 721 if (client == resource_client) { |
721 resource_clients_.erase(index++); | 722 resource_clients_.erase(index++); |
722 } else { | 723 } else { |
723 index++; | 724 index++; |
724 } | 725 } |
725 } | 726 } |
726 } | 727 } |
OLD | NEW |