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

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

Issue 7633060: Add option to not generate resources on bind in OpenGL ES (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nacl fix Created 9 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
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | ppapi/shared_impl/graphics_3d_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ppb_context_3d_proxy.h" 5 #include "ppapi/proxy/ppb_context_3d_proxy.h"
6 6
7 #include "base/hash_tables.h" 7 #include "base/hash_tables.h"
8 #include "gpu/command_buffer/client/gles2_cmd_helper.h" 8 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
9 #include "gpu/command_buffer/client/gles2_implementation.h" 9 #include "gpu/command_buffer/client/gles2_implementation.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 gpu::Buffer transfer_buffer = 377 gpu::Buffer transfer_buffer =
378 command_buffer_->GetTransferBuffer(transfer_buffer_id_); 378 command_buffer_->GetTransferBuffer(transfer_buffer_id_);
379 if (!transfer_buffer.ptr) 379 if (!transfer_buffer.ptr)
380 return false; 380 return false;
381 381
382 gles2_impl_.reset(new gpu::gles2::GLES2Implementation( 382 gles2_impl_.reset(new gpu::gles2::GLES2Implementation(
383 helper_.get(), 383 helper_.get(),
384 transfer_buffer.size, 384 transfer_buffer.size,
385 transfer_buffer.ptr, 385 transfer_buffer.ptr,
386 transfer_buffer_id_, 386 transfer_buffer_id_,
387 false)); 387 false,
388 true));
388 389
389 return true; 390 return true;
390 } 391 }
391 392
392 int32_t Context3D::GetAttrib(int32_t attribute, int32_t* value) { 393 int32_t Context3D::GetAttrib(int32_t attribute, int32_t* value) {
393 // TODO(alokp): Implement me. 394 // TODO(alokp): Implement me.
394 return 0; 395 return 0;
395 } 396 }
396 397
397 int32_t Context3D::BindSurfaces(PP_Resource pp_draw, PP_Resource pp_read) { 398 int32_t Context3D::BindSurfaces(PP_Resource pp_draw, PP_Resource pp_read) {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 uint32_t shm_size = 0; 721 uint32_t shm_size = 0;
721 if (enter.succeeded() && 722 if (enter.succeeded() &&
722 enter.object()->GetTransferBuffer(id, &shm_handle, &shm_size)) { 723 enter.object()->GetTransferBuffer(id, &shm_handle, &shm_size)) {
723 *transfer_buffer = TransportSHMHandleFromInt(dispatcher(), shm_handle); 724 *transfer_buffer = TransportSHMHandleFromInt(dispatcher(), shm_handle);
724 *size = shm_size; 725 *size = shm_size;
725 } 726 }
726 } 727 }
727 728
728 } // namespace proxy 729 } // namespace proxy
729 } // namespace pp 730 } // namespace pp
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | ppapi/shared_impl/graphics_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698