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

Side by Side Diff: gpu/gles2_conform_support/egl/display.cc

Issue 22824009: Remove StreamTextureManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/gles2_conform_support/egl/display.h" 5 #include "gpu/gles2_conform_support/egl/display.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "gpu/command_buffer/client/gles2_implementation.h" 10 #include "gpu/command_buffer/client/gles2_implementation.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 gpu::TransferBufferManager* manager = new gpu::TransferBufferManager(); 106 gpu::TransferBufferManager* manager = new gpu::TransferBufferManager();
107 transfer_buffer_manager_.reset(manager); 107 transfer_buffer_manager_.reset(manager);
108 manager->Initialize(); 108 manager->Initialize();
109 } 109 }
110 scoped_ptr<gpu::CommandBufferService> command_buffer( 110 scoped_ptr<gpu::CommandBufferService> command_buffer(
111 new gpu::CommandBufferService(transfer_buffer_manager_.get())); 111 new gpu::CommandBufferService(transfer_buffer_manager_.get()));
112 if (!command_buffer->Initialize()) 112 if (!command_buffer->Initialize())
113 return NULL; 113 return NULL;
114 114
115 scoped_refptr<gpu::gles2::ContextGroup> group( 115 scoped_refptr<gpu::gles2::ContextGroup> group(
116 new gpu::gles2::ContextGroup(NULL, NULL, NULL, NULL, true)); 116 new gpu::gles2::ContextGroup(NULL, NULL, NULL, true));
117 117
118 decoder_.reset(gpu::gles2::GLES2Decoder::Create(group.get())); 118 decoder_.reset(gpu::gles2::GLES2Decoder::Create(group.get()));
119 if (!decoder_.get()) 119 if (!decoder_.get())
120 return EGL_NO_SURFACE; 120 return EGL_NO_SURFACE;
121 121
122 gpu_scheduler_.reset(new gpu::GpuScheduler(command_buffer.get(), 122 gpu_scheduler_.reset(new gpu::GpuScheduler(command_buffer.get(),
123 decoder_.get(), 123 decoder_.get(),
124 NULL)); 124 NULL));
125 125
126 decoder_->set_engine(gpu_scheduler_.get()); 126 decoder_->set_engine(gpu_scheduler_.get());
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 } else { 256 } else {
257 DCHECK(IsValidSurface(draw)); 257 DCHECK(IsValidSurface(draw));
258 DCHECK(IsValidSurface(read)); 258 DCHECK(IsValidSurface(read));
259 DCHECK(IsValidContext(ctx)); 259 DCHECK(IsValidContext(ctx));
260 gles2::SetGLContext(context_.get()); 260 gles2::SetGLContext(context_.get());
261 } 261 }
262 return true; 262 return true;
263 } 263 }
264 264
265 } // namespace egl 265 } // namespace egl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698