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

Side by Side Diff: gpu/demos/framework/window.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
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/gles2_conform_support/egl/display.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) 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 <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 TransferBufferManager* manager = new TransferBufferManager(); 72 TransferBufferManager* manager = new TransferBufferManager();
73 transfer_buffer_manager_.reset(manager); 73 transfer_buffer_manager_.reset(manager);
74 EXPECT_TRUE(manager->Initialize()); 74 EXPECT_TRUE(manager->Initialize());
75 } 75 }
76 command_buffer_.reset( 76 command_buffer_.reset(
77 new CommandBufferService(transfer_buffer_manager_.get())); 77 new CommandBufferService(transfer_buffer_manager_.get()));
78 if (!command_buffer_->Initialize()) { 78 if (!command_buffer_->Initialize()) {
79 return false; 79 return false;
80 } 80 }
81 81
82 gpu::gles2::ContextGroup::Ref group(new gpu::gles2::ContextGroup(NULL, true)); 82 gpu::gles2::ContextGroup::Ref group(new gpu::gles2::ContextGroup(NULL,
83 NULL,
84 true));
83 85
84 decoder_.reset(gpu::gles2::GLES2Decoder::Create(group.get())); 86 decoder_.reset(gpu::gles2::GLES2Decoder::Create(group.get()));
85 if (!decoder_.get()) 87 if (!decoder_.get())
86 return false; 88 return false;
87 89
88 gpu_scheduler_.reset(new gpu::GpuScheduler(command_buffer_.get(), 90 gpu_scheduler_.reset(new gpu::GpuScheduler(command_buffer_.get(),
89 decoder_.get(), 91 decoder_.get(),
90 NULL)); 92 NULL));
91 93
92 decoder_->set_engine(gpu_scheduler_.get()); 94 decoder_->set_engine(gpu_scheduler_.get());
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 kTransferBufferSize, 143 kTransferBufferSize,
142 kTransferBufferSize)) { 144 kTransferBufferSize)) {
143 return false; 145 return false;
144 } 146 }
145 147
146 return true; 148 return true;
147 } 149 }
148 150
149 } // namespace demos 151 } // namespace demos
150 } // namespace gpu 152 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698