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

Side by Side Diff: gpu/demos/framework/window.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
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 "gpu/demos/framework/window.h" 5 #include "gpu/demos/framework/window.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "gpu/command_buffer/client/gles2_implementation.h" 8 #include "gpu/command_buffer/client/gles2_implementation.h"
9 #include "gpu/command_buffer/client/gles2_lib.h" 9 #include "gpu/command_buffer/client/gles2_lib.h"
10 #include "gpu/command_buffer/service/command_buffer_service.h" 10 #include "gpu/command_buffer/service/command_buffer_service.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 command_buffer->CreateTransferBuffer(kTransferBufferSize, -1); 83 command_buffer->CreateTransferBuffer(kTransferBufferSize, -1);
84 Buffer transfer_buffer = 84 Buffer transfer_buffer =
85 command_buffer->GetTransferBuffer(transfer_buffer_id); 85 command_buffer->GetTransferBuffer(transfer_buffer_id);
86 if (transfer_buffer.ptr == NULL) return false; 86 if (transfer_buffer.ptr == NULL) return false;
87 87
88 ::gles2::Initialize(); 88 ::gles2::Initialize();
89 ::gles2::SetGLContext(new GLES2Implementation(helper, 89 ::gles2::SetGLContext(new GLES2Implementation(helper,
90 transfer_buffer.size, 90 transfer_buffer.size,
91 transfer_buffer.ptr, 91 transfer_buffer.ptr,
92 transfer_buffer_id, 92 transfer_buffer_id,
93 false)); 93 false,
94 true));
94 return command_buffer.release() != NULL; 95 return command_buffer.release() != NULL;
95 } 96 }
96 97
97 } // namespace demos 98 } // namespace demos
98 } // namespace gpu 99 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698