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

Side by Side Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 10796096: Add tracing of all memory allocated in all contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More trybot constructor fixes Created 8 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) 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/tests/gl_manager.h" 5 #include "gpu/command_buffer/tests/gl_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 attribs.push_back(EGL_BLUE_SIZE); 91 attribs.push_back(EGL_BLUE_SIZE);
92 attribs.push_back(8); 92 attribs.push_back(8);
93 attribs.push_back(EGL_ALPHA_SIZE); 93 attribs.push_back(EGL_ALPHA_SIZE);
94 attribs.push_back(8); 94 attribs.push_back(8);
95 attribs.push_back(EGL_DEPTH_SIZE); 95 attribs.push_back(EGL_DEPTH_SIZE);
96 attribs.push_back(16); 96 attribs.push_back(16);
97 attribs.push_back(EGL_NONE); 97 attribs.push_back(EGL_NONE);
98 98
99 if (!context_group) { 99 if (!context_group) {
100 context_group = new gles2::ContextGroup(mailbox_manager_.get(), 100 context_group = new gles2::ContextGroup(mailbox_manager_.get(),
101 NULL,
101 kBindGeneratesResource); 102 kBindGeneratesResource);
102 } 103 }
103 104
104 decoder_.reset(::gpu::gles2::GLES2Decoder::Create(context_group)); 105 decoder_.reset(::gpu::gles2::GLES2Decoder::Create(context_group));
105 106
106 command_buffer_.reset(new CommandBufferService( 107 command_buffer_.reset(new CommandBufferService(
107 decoder_->GetContextGroup()->transfer_buffer_manager())); 108 decoder_->GetContextGroup()->transfer_buffer_manager()));
108 ASSERT_TRUE(command_buffer_->Initialize()) 109 ASSERT_TRUE(command_buffer_->Initialize())
109 << "could not create command buffer service"; 110 << "could not create command buffer service";
110 111
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 ::gpu::CommandBuffer::State state = command_buffer_->GetState(); 188 ::gpu::CommandBuffer::State state = command_buffer_->GetState();
188 ASSERT_EQ(::gpu::error::kNoError, state.error); 189 ASSERT_EQ(::gpu::error::kNoError, state.error);
189 } 190 }
190 191
191 bool GLManager::GetBufferChanged(int32 transfer_buffer_id) { 192 bool GLManager::GetBufferChanged(int32 transfer_buffer_id) {
192 return gpu_scheduler_->SetGetBuffer(transfer_buffer_id); 193 return gpu_scheduler_->SetGetBuffer(transfer_buffer_id);
193 } 194 }
194 195
195 } // namespace gpu 196 } // namespace gpu
196 197
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/vertex_attrib_manager_unittest.cc ('k') | gpu/demos/framework/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698