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

Side by Side Diff: chrome/plugin/command_buffer_stub.cc

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 10 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
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 "base/callback.h" 5 #include "base/callback.h"
6 #include "base/scoped_open_process.h" 6 #include "base/scoped_open_process.h"
7 #include "base/shared_memory.h" 7 #include "base/shared_memory.h"
8 #include "chrome/common/gpu_messages.h" 8 #include "chrome/common/gpu_messages.h"
9 #include "chrome/common/plugin_messages.h" 9 #include "chrome/common/plugin_messages.h"
10 #include "chrome/plugin/command_buffer_stub.h" 10 #include "chrome/plugin/command_buffer_stub.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 notify_repaint = true; 219 notify_repaint = true;
220 } 220 }
221 } 221 }
222 if (notify_repaint) { 222 if (notify_repaint) {
223 // Indicate to the client that at least one repaint is needed. 223 // Indicate to the client that at least one repaint is needed.
224 NotifyRepaint(); 224 NotifyRepaint();
225 } 225 }
226 } 226 }
227 227
228 void CommandBufferStub::SwapBuffersCallback() { 228 void CommandBufferStub::SwapBuffersCallback() {
229 Send(new PluginHostMsg_AcceleratedSurfaceBuffersSwapped(plugin_host_route_id_, 229 Send(new PluginHostMsg_AcceleratedSurfaceBuffersSwapped(
230 window_)); 230 plugin_host_route_id_, window_, processor_->GetSurfaceId()));
231 } 231 }
232 232
233 void CommandBufferStub::AllocTransportDIB(const size_t size, 233 void CommandBufferStub::AllocTransportDIB(const size_t size,
234 TransportDIB::Handle* dib_handle) { 234 TransportDIB::Handle* dib_handle) {
235 Send(new PluginHostMsg_AllocTransportDIB(plugin_host_route_id_, 235 Send(new PluginHostMsg_AllocTransportDIB(plugin_host_route_id_,
236 size, 236 size,
237 dib_handle)); 237 dib_handle));
238 } 238 }
239 239
240 void CommandBufferStub::FreeTransportDIB(TransportDIB::Id dib_id) { 240 void CommandBufferStub::FreeTransportDIB(TransportDIB::Id dib_id) {
241 Send(new PluginHostMsg_FreeTransportDIB(plugin_host_route_id_, 241 Send(new PluginHostMsg_FreeTransportDIB(plugin_host_route_id_,
242 dib_id)); 242 dib_id));
243 } 243 }
244 #endif 244 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698