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

Side by Side Diff: content/plugin/webplugin_delegate_stub.cc

Issue 11361170: Get windowless plugins working when accelerated compositing is turned on. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/common/plugin_messages.h ('k') | content/plugin/webplugin_proxy.h » ('j') | 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/plugin/webplugin_delegate_stub.h" 5 #include "content/plugin/webplugin_delegate_stub.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 void WebPluginDelegateStub::OnDidPaint() { 257 void WebPluginDelegateStub::OnDidPaint() {
258 webplugin_->DidPaint(); 258 webplugin_->DidPaint();
259 } 259 }
260 260
261 void WebPluginDelegateStub::OnUpdateGeometry( 261 void WebPluginDelegateStub::OnUpdateGeometry(
262 const PluginMsg_UpdateGeometry_Param& param) { 262 const PluginMsg_UpdateGeometry_Param& param) {
263 webplugin_->UpdateGeometry( 263 webplugin_->UpdateGeometry(
264 param.window_rect, param.clip_rect, 264 param.window_rect, param.clip_rect,
265 param.windowless_buffer0, param.windowless_buffer1, 265 param.windowless_buffer0, param.windowless_buffer1,
266 param.windowless_buffer_index, param.background_buffer, 266 param.windowless_buffer_index);
267 param.transparent);
268 } 267 }
269 268
270 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id) { 269 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id) {
271 NPObject* object = delegate_->GetPluginScriptableObject(); 270 NPObject* object = delegate_->GetPluginScriptableObject();
272 if (!object) { 271 if (!object) {
273 *route_id = MSG_ROUTING_NONE; 272 *route_id = MSG_ROUTING_NONE;
274 return; 273 return;
275 } 274 }
276 275
277 *route_id = channel_->GenerateRouteID(); 276 *route_id = channel_->GenerateRouteID();
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 } 394 }
396 395
397 #if defined(OS_MACOSX) 396 #if defined(OS_MACOSX)
398 void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle( 397 void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle(
399 gfx::PluginWindowHandle window) { 398 gfx::PluginWindowHandle window) {
400 delegate_->set_windowed_handle(window); 399 delegate_->set_windowed_handle(window);
401 } 400 }
402 #endif 401 #endif
403 402
404 } // namespace content 403 } // namespace content
OLDNEW
« no previous file with comments | « content/common/plugin_messages.h ('k') | content/plugin/webplugin_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698