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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 1974163003: Expose GpuMemoryBufferId through glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 years, 7 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
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 "ppapi/proxy/ppapi_command_buffer_proxy.h" 5 #include "ppapi/proxy/ppapi_command_buffer_proxy.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/numerics/safe_conversions.h" 9 #include "base/numerics/safe_conversions.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 int32_t PpapiCommandBufferProxy::CreateGpuMemoryBufferImage( 256 int32_t PpapiCommandBufferProxy::CreateGpuMemoryBufferImage(
257 size_t width, 257 size_t width,
258 size_t height, 258 size_t height,
259 unsigned internalformat, 259 unsigned internalformat,
260 unsigned usage) { 260 unsigned usage) {
261 NOTREACHED(); 261 NOTREACHED();
262 return -1; 262 return -1;
263 } 263 }
264 264
265 int32_t PpapiCommandBufferProxy::GetImageGpuMemoryBufferId(unsigned image_id) {
266 NOTREACHED();
267 return -1;
268 }
269
265 bool PpapiCommandBufferProxy::Send(IPC::Message* msg) { 270 bool PpapiCommandBufferProxy::Send(IPC::Message* msg) {
266 DCHECK(last_state_.error == gpu::error::kNoError); 271 DCHECK(last_state_.error == gpu::error::kNoError);
267 272
268 // We need to hold the Pepper proxy lock for sync IPC, because the GPU command 273 // We need to hold the Pepper proxy lock for sync IPC, because the GPU command
269 // buffer may use a sync IPC with another lock held which could lead to lock 274 // buffer may use a sync IPC with another lock held which could lead to lock
270 // and deadlock if we dropped the proxy lock here. 275 // and deadlock if we dropped the proxy lock here.
271 // http://crbug.com/418651 276 // http://crbug.com/418651
272 if (dispatcher_->SendAndStayLocked(msg)) 277 if (dispatcher_->SendAndStayLocked(msg))
273 return true; 278 return true;
274 279
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 message->set_unblock(true); 322 message->set_unblock(true);
318 Send(message); 323 Send(message);
319 324
320 flush_info_->flush_pending = false; 325 flush_info_->flush_pending = false;
321 flush_info_->resource.SetHostResource(0, 0); 326 flush_info_->resource.SetHostResource(0, 0);
322 flushed_fence_sync_release_ = pending_fence_sync_release_; 327 flushed_fence_sync_release_ = pending_fence_sync_release_;
323 } 328 }
324 329
325 } // namespace proxy 330 } // namespace proxy
326 } // namespace ppapi 331 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698