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

Side by Side Diff: gpu/demos/framework/window.cc

Issue 9837124: Add ShareGroup to GLES2Implemenation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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) 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 "gpu/demos/framework/window.h" 5 #include "gpu/demos/framework/window.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 gles2_cmd_helper_.reset(new GLES2CmdHelper(command_buffer_.get())); 111 gles2_cmd_helper_.reset(new GLES2CmdHelper(command_buffer_.get()));
112 if (!gles2_cmd_helper_->Initialize(kCommandBufferSize)) 112 if (!gles2_cmd_helper_->Initialize(kCommandBufferSize))
113 return false; 113 return false;
114 114
115 transfer_buffer_.reset(new gpu::TransferBuffer(gles2_cmd_helper_.get())); 115 transfer_buffer_.reset(new gpu::TransferBuffer(gles2_cmd_helper_.get()));
116 116
117 ::gles2::Initialize(); 117 ::gles2::Initialize();
118 gles2_implementation_.reset(new GLES2Implementation( 118 gles2_implementation_.reset(new GLES2Implementation(
119 gles2_cmd_helper_.get(), 119 gles2_cmd_helper_.get(),
120 NULL,
120 transfer_buffer_.get(), 121 transfer_buffer_.get(),
121 false, 122 false,
122 true)); 123 true));
123 124
124 ::gles2::SetGLContext(gles2_implementation_.get()); 125 ::gles2::SetGLContext(gles2_implementation_.get());
125 126
126 if (!gles2_implementation_->Initialize( 127 if (!gles2_implementation_->Initialize(
127 kTransferBufferSize, 128 kTransferBufferSize,
128 kTransferBufferSize, 129 kTransferBufferSize,
129 kTransferBufferSize)) { 130 kTransferBufferSize)) {
130 return false; 131 return false;
131 } 132 }
132 133
133 return true; 134 return true;
134 } 135 }
135 136
136 } // namespace demos 137 } // namespace demos
137 } // namespace gpu 138 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698