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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 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
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/command_buffer/service/gles2_cmd_decoder_unittest_base.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 shared_memory_address_ = reinterpret_cast<int8*>(buffer.ptr) + 228 shared_memory_address_ = reinterpret_cast<int8*>(buffer.ptr) +
229 shared_memory_offset_; 229 shared_memory_offset_;
230 shared_memory_id_ = kSharedMemoryId; 230 shared_memory_id_ = kSharedMemoryId;
231 shared_memory_base_ = buffer.ptr; 231 shared_memory_base_ = buffer.ptr;
232 232
233 surface_ = new gfx::GLSurfaceStub; 233 surface_ = new gfx::GLSurfaceStub;
234 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight)); 234 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight));
235 235
236 context_ = new gfx::GLContextStub; 236 context_ = new gfx::GLContextStub;
237 237
238 context_->MakeCurrent(surface_); 238 context_->MakeCurrent(surface_.get());
239 239
240 // From <EGL/egl.h>. 240 // From <EGL/egl.h>.
241 const int32 EGL_ALPHA_SIZE = 0x3021; 241 const int32 EGL_ALPHA_SIZE = 0x3021;
242 const int32 EGL_DEPTH_SIZE = 0x3025; 242 const int32 EGL_DEPTH_SIZE = 0x3025;
243 const int32 EGL_STENCIL_SIZE = 0x3026; 243 const int32 EGL_STENCIL_SIZE = 0x3026;
244 244
245 int32 attributes[] = { 245 int32 attributes[] = {
246 EGL_ALPHA_SIZE, request_alpha ? 8 : 0, 246 EGL_ALPHA_SIZE, request_alpha ? 8 : 0,
247 EGL_DEPTH_SIZE, request_depth ? 24 : 0, 247 EGL_DEPTH_SIZE, request_depth ? 24 : 0,
248 EGL_STENCIL_SIZE, request_stencil ? 8 : 0, 248 EGL_STENCIL_SIZE, request_stencil ? 8 : 0,
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 SetupDefaultProgram(); 1373 SetupDefaultProgram();
1374 } 1374 }
1375 1375
1376 // Include the auto-generated part of this file. We split this because it means 1376 // Include the auto-generated part of this file. We split this because it means
1377 // we can easily edit the non-auto generated parts right here in this file 1377 // we can easily edit the non-auto generated parts right here in this file
1378 // instead of having to edit some template or the code generator. 1378 // instead of having to edit some template or the code generator.
1379 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 1379 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
1380 1380
1381 } // namespace gles2 1381 } // namespace gles2
1382 } // namespace gpu 1382 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/image_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698