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

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

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('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) 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/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 4216 matching lines...) Expand 10 before | Expand all | Expand 10 after
4227 new PluginMsg_SignalModalDialogEvent(host_window_)); 4227 new PluginMsg_SignalModalDialogEvent(host_window_));
4228 4228
4229 message->EnableMessagePumping(); // Runs a nested message loop. 4229 message->EnableMessagePumping(); // Runs a nested message loop.
4230 bool rv = Send(message); 4230 bool rv = Send(message);
4231 4231
4232 PluginChannelHost::Broadcast( 4232 PluginChannelHost::Broadcast(
4233 new PluginMsg_ResetModalDialogEvent(host_window_)); 4233 new PluginMsg_ResetModalDialogEvent(host_window_));
4234 4234
4235 return rv; 4235 return rv;
4236 } 4236 }
4237
4238 #if defined(OS_MACOSX)
4239 gfx::PluginWindowHandle RenderView::AllocateFakePluginWindowHandle() {
4240 gfx::PluginWindowHandle window = NULL;
4241 Send(new ViewHostMsg_AllocateFakePluginWindowHandle(
4242 routing_id(), &window));
4243 return window;
4244 }
4245
4246 void RenderView::DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window) {
4247 if (window)
4248 Send(new ViewHostMsg_DestroyFakePluginWindowHandle(routing_id(), window));
4249 }
4250
4251 void RenderView::GPUPluginSetIOSurface(gfx::PluginWindowHandle window,
4252 int32 width,
4253 int32 height,
4254 uint64 io_surface_identifier) {
4255 Send(new ViewHostMsg_GPUPluginSetIOSurface(
4256 routing_id(), window, width, height, io_surface_identifier));
4257 }
4258
4259 void RenderView::GPUPluginBuffersSwapped(gfx::PluginWindowHandle window) {
4260 Send(new ViewHostMsg_GPUPluginBuffersSwapped(routing_id(), window));
4261 }
4262 #endif
4263
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698