Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/renderer_host/render_widget_host.h" | 5 #include "content/browser/renderer_host/render_widget_host.h" |
| 6 #include "content/browser/renderer_host/render_widget_host_view.h" | 6 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 7 | 7 |
| 8 void RenderWidgetHost::OnMsgPluginFocusChanged(bool focused, int plugin_id) { | 8 void RenderWidgetHost::OnMsgPluginFocusChanged(bool focused, int plugin_id) { |
| 9 if (view_) | 9 if (view_) |
| 10 view_->PluginFocusChanged(focused, plugin_id); | 10 view_->PluginFocusChanged(focused, plugin_id); |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 | 30 |
| 31 void RenderWidgetHost::OnDestroyFakePluginWindowHandle( | 31 void RenderWidgetHost::OnDestroyFakePluginWindowHandle( |
| 32 gfx::PluginWindowHandle id) { | 32 gfx::PluginWindowHandle id) { |
| 33 if (view_) { | 33 if (view_) { |
| 34 view_->DestroyFakePluginWindowHandle(id); | 34 view_->DestroyFakePluginWindowHandle(id); |
| 35 } else { | 35 } else { |
| 36 NOTIMPLEMENTED(); | 36 NOTIMPLEMENTED(); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 void RenderWidgetHost::OnAcceleratedSurfaceSetIOSurface( | 40 void RenderWidgetHost::OnAcceleratedSurfaceNew( |
|
jonathan.backer
2011/09/21 20:27:36
I would be careful of this. It may have more than
danakj
2011/09/21 20:58:20
What would be the problem if it did have an entry
| |
| 41 gfx::PluginWindowHandle window, | 41 gfx::PluginWindowHandle window, |
| 42 int32 width, | 42 int32 width, |
| 43 int32 height, | 43 int32 height, |
| 44 uint64 mach_port) { | 44 uint64 mach_port) { |
| 45 if (view_) { | 45 if (view_) { |
| 46 view_->AcceleratedSurfaceSetIOSurface(window, width, height, mach_port); | 46 view_->AcceleratedSurfaceNew(window, width, height, mach_port); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 void RenderWidgetHost::OnAcceleratedSurfaceSetTransportDIB( | 50 void RenderWidgetHost::OnAcceleratedSurfaceSetTransportDIB( |
| 51 gfx::PluginWindowHandle window, | 51 gfx::PluginWindowHandle window, |
| 52 int32 width, | 52 int32 width, |
| 53 int32 height, | 53 int32 height, |
| 54 TransportDIB::Handle transport_dib) { | 54 TransportDIB::Handle transport_dib) { |
| 55 if (view_) { | 55 if (view_) { |
| 56 view_->AcceleratedSurfaceSetTransportDIB(window, width, height, | 56 view_->AcceleratedSurfaceSetTransportDIB(window, width, height, |
| 57 transport_dib); | 57 transport_dib); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 | 60 |
| 61 void RenderWidgetHost::OnAcceleratedSurfaceBuffersSwapped( | 61 void RenderWidgetHost::OnAcceleratedSurfaceBuffersSwapped( |
| 62 gfx::PluginWindowHandle window, uint64 surface_id) { | 62 gfx::PluginWindowHandle window, uint64 surface_id) { |
| 63 if (view_) { | 63 if (view_) { |
| 64 // This code path could be updated to implement flow control for | 64 // This code path could be updated to implement flow control for |
| 65 // updating of accelerated plugins as well. However, if we add support | 65 // updating of accelerated plugins as well. However, if we add support |
| 66 // for composited plugins then this is not necessary. | 66 // for composited plugins then this is not necessary. |
| 67 view_->AcceleratedSurfaceBuffersSwapped(window, surface_id, | 67 view_->AcceleratedSurfaceBuffersSwapped(window, surface_id, |
| 68 0, 0, 0, 0); | 68 0, 0, 0, 0); |
| 69 } | 69 } |
| 70 } | 70 } |
| OLD | NEW |