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

Side by Side Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 3067026: Initial port of accelerated compositor to Mac OS X 10.6. Reused... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months 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
OLDNEW
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/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 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 } 1392 }
1393 1393
1394 // Synthesize a fake window handle for the plug-in to identify the instance 1394 // Synthesize a fake window handle for the plug-in to identify the instance
1395 // to the browser, allowing mapping to a surface for hardware acceleration 1395 // to the browser, allowing mapping to a surface for hardware acceleration
1396 // of plug-in content. The browser generates the handle which is then set on 1396 // of plug-in content. The browser generates the handle which is then set on
1397 // the plug-in. Returns true if it successfully sets the window handle on the 1397 // the plug-in. Returns true if it successfully sets the window handle on the
1398 // plug-in. 1398 // plug-in.
1399 bool WebPluginDelegateProxy::BindFakePluginWindowHandle(bool opaque) { 1399 bool WebPluginDelegateProxy::BindFakePluginWindowHandle(bool opaque) {
1400 gfx::PluginWindowHandle fake_window = NULL; 1400 gfx::PluginWindowHandle fake_window = NULL;
1401 if (render_view_) 1401 if (render_view_)
1402 fake_window = render_view_->AllocateFakePluginWindowHandle(opaque); 1402 fake_window = render_view_->AllocateFakePluginWindowHandle(opaque, false);
1403 // If we aren't running on 10.6, this allocation will fail. 1403 // If we aren't running on 10.6, this allocation will fail.
1404 if (!fake_window) 1404 if (!fake_window)
1405 return false; 1405 return false;
1406 OnSetWindow(fake_window); 1406 OnSetWindow(fake_window);
1407 if (!Send(new PluginMsg_SetFakeAcceleratedSurfaceWindowHandle(instance_id_, 1407 if (!Send(new PluginMsg_SetFakeAcceleratedSurfaceWindowHandle(instance_id_,
1408 fake_window))) { 1408 fake_window))) {
1409 return false; 1409 return false;
1410 } 1410 }
1411 1411
1412 // Since this isn't a real window, it doesn't get initial size and location 1412 // Since this isn't a real window, it doesn't get initial size and location
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 if (index->mime_type == "application/x-vnd.moveplayer.qm" || 1557 if (index->mime_type == "application/x-vnd.moveplayer.qm" ||
1558 index->mime_type == "application/x-vnd.moveplay2.qm" || 1558 index->mime_type == "application/x-vnd.moveplay2.qm" ||
1559 index->mime_type == "application/x-vnd.movenetworks.qm" || 1559 index->mime_type == "application/x-vnd.movenetworks.qm" ||
1560 index->mime_type == "application/x-vnd.mnplayer.qm") { 1560 index->mime_type == "application/x-vnd.mnplayer.qm") {
1561 return true; 1561 return true;
1562 } 1562 }
1563 } 1563 }
1564 return false; 1564 return false;
1565 } 1565 }
1566 #endif 1566 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/webgles2context_impl.cc ('k') | gpu/command_buffer/service/gpu_processor_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698