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

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

Issue 2061743004: Implement native GMB backbuffers in the GLES2 Command Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from piman. Created 4 years, 5 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
« no previous file with comments | « gpu/command_buffer/service/image_factory.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/in_process_command_buffer.h" 5 #include "gpu/command_buffer/service/in_process_command_buffer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 bool bind_generates_resource = false; 327 bool bind_generates_resource = false;
328 scoped_refptr<gles2::FeatureInfo> feature_info = 328 scoped_refptr<gles2::FeatureInfo> feature_info =
329 new gles2::FeatureInfo(service_->gpu_driver_bug_workarounds()); 329 new gles2::FeatureInfo(service_->gpu_driver_bug_workarounds());
330 decoder_.reset(gles2::GLES2Decoder::Create( 330 decoder_.reset(gles2::GLES2Decoder::Create(
331 params.context_group 331 params.context_group
332 ? params.context_group->decoder_->GetContextGroup() 332 ? params.context_group->decoder_->GetContextGroup()
333 : new gles2::ContextGroup( 333 : new gles2::ContextGroup(
334 service_->gpu_preferences(), service_->mailbox_manager(), NULL, 334 service_->gpu_preferences(), service_->mailbox_manager(), NULL,
335 service_->shader_translator_cache(), 335 service_->shader_translator_cache(),
336 service_->framebuffer_completeness_cache(), feature_info, 336 service_->framebuffer_completeness_cache(), feature_info,
337 bind_generates_resource))); 337 bind_generates_resource, nullptr)));
338 338
339 executor_.reset(new CommandExecutor(command_buffer.get(), decoder_.get(), 339 executor_.reset(new CommandExecutor(command_buffer.get(), decoder_.get(),
340 decoder_.get())); 340 decoder_.get()));
341 command_buffer->SetGetBufferChangeCallback(base::Bind( 341 command_buffer->SetGetBufferChangeCallback(base::Bind(
342 &CommandExecutor::SetGetBuffer, base::Unretained(executor_.get()))); 342 &CommandExecutor::SetGetBuffer, base::Unretained(executor_.get())));
343 command_buffer_ = std::move(command_buffer); 343 command_buffer_ = std::move(command_buffer);
344 344
345 decoder_->set_engine(executor_.get()); 345 decoder_->set_engine(executor_.get());
346 346
347 if (!surface_.get()) { 347 if (!surface_.get()) {
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 framebuffer_completeness_cache_ = 1081 framebuffer_completeness_cache_ =
1082 new gpu::gles2::FramebufferCompletenessCache; 1082 new gpu::gles2::FramebufferCompletenessCache;
1083 return framebuffer_completeness_cache_; 1083 return framebuffer_completeness_cache_;
1084 } 1084 }
1085 1085
1086 SyncPointManager* GpuInProcessThread::sync_point_manager() { 1086 SyncPointManager* GpuInProcessThread::sync_point_manager() {
1087 return sync_point_manager_; 1087 return sync_point_manager_;
1088 } 1088 }
1089 1089
1090 } // namespace gpu 1090 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/image_factory.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698