OLD | NEW |
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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 bool bind_generates_resource = false; | 323 bool bind_generates_resource = false; |
324 scoped_refptr<gles2::FeatureInfo> feature_info = | 324 scoped_refptr<gles2::FeatureInfo> feature_info = |
325 new gles2::FeatureInfo(service_->gpu_driver_bug_workarounds()); | 325 new gles2::FeatureInfo(service_->gpu_driver_bug_workarounds()); |
326 decoder_.reset(gles2::GLES2Decoder::Create( | 326 decoder_.reset(gles2::GLES2Decoder::Create( |
327 params.context_group | 327 params.context_group |
328 ? params.context_group->decoder_->GetContextGroup() | 328 ? params.context_group->decoder_->GetContextGroup() |
329 : new gles2::ContextGroup( | 329 : new gles2::ContextGroup( |
330 service_->gpu_preferences(), service_->mailbox_manager(), NULL, | 330 service_->gpu_preferences(), service_->mailbox_manager(), NULL, |
331 service_->shader_translator_cache(), | 331 service_->shader_translator_cache(), |
332 service_->framebuffer_completeness_cache(), feature_info, | 332 service_->framebuffer_completeness_cache(), feature_info, |
333 bind_generates_resource, nullptr))); | 333 bind_generates_resource, nullptr, nullptr))); |
334 | 334 |
335 executor_.reset(new CommandExecutor(command_buffer.get(), decoder_.get(), | 335 executor_.reset(new CommandExecutor(command_buffer.get(), decoder_.get(), |
336 decoder_.get())); | 336 decoder_.get())); |
337 command_buffer->SetGetBufferChangeCallback(base::Bind( | 337 command_buffer->SetGetBufferChangeCallback(base::Bind( |
338 &CommandExecutor::SetGetBuffer, base::Unretained(executor_.get()))); | 338 &CommandExecutor::SetGetBuffer, base::Unretained(executor_.get()))); |
339 command_buffer_ = std::move(command_buffer); | 339 command_buffer_ = std::move(command_buffer); |
340 | 340 |
341 decoder_->set_engine(executor_.get()); | 341 decoder_->set_engine(executor_.get()); |
342 | 342 |
343 if (!surface_.get()) { | 343 if (!surface_.get()) { |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 framebuffer_completeness_cache_ = | 1061 framebuffer_completeness_cache_ = |
1062 new gpu::gles2::FramebufferCompletenessCache; | 1062 new gpu::gles2::FramebufferCompletenessCache; |
1063 return framebuffer_completeness_cache_; | 1063 return framebuffer_completeness_cache_; |
1064 } | 1064 } |
1065 | 1065 |
1066 SyncPointManager* GpuInProcessThread::sync_point_manager() { | 1066 SyncPointManager* GpuInProcessThread::sync_point_manager() { |
1067 return sync_point_manager_; | 1067 return sync_point_manager_; |
1068 } | 1068 } |
1069 | 1069 |
1070 } // namespace gpu | 1070 } // namespace gpu |
OLD | NEW |