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 <queue> | 7 #include <queue> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 InsertSyncPoint()); | 627 InsertSyncPoint()); |
628 } | 628 } |
629 | 629 |
630 return new_id; | 630 return new_id; |
631 } | 631 } |
632 | 632 |
633 void InProcessCommandBuffer::CreateImageOnGpuThread( | 633 void InProcessCommandBuffer::CreateImageOnGpuThread( |
634 int32 id, | 634 int32 id, |
635 const gfx::GpuMemoryBufferHandle& handle, | 635 const gfx::GpuMemoryBufferHandle& handle, |
636 const gfx::Size& size, | 636 const gfx::Size& size, |
637 gfx::GpuMemoryBuffer::Format format, | 637 gfx::BufferFormat format, |
638 uint32 internalformat) { | 638 uint32 internalformat) { |
639 if (!decoder_) | 639 if (!decoder_) |
640 return; | 640 return; |
641 | 641 |
642 gpu::gles2::ImageManager* image_manager = decoder_->GetImageManager(); | 642 gpu::gles2::ImageManager* image_manager = decoder_->GetImageManager(); |
643 DCHECK(image_manager); | 643 DCHECK(image_manager); |
644 if (image_manager->LookupImage(id)) { | 644 if (image_manager->LookupImage(id)) { |
645 LOG(ERROR) << "Image already exists with same ID."; | 645 LOG(ERROR) << "Image already exists with same ID."; |
646 return; | 646 return; |
647 } | 647 } |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 if (!shader_translator_cache_.get()) | 923 if (!shader_translator_cache_.get()) |
924 shader_translator_cache_ = new gpu::gles2::ShaderTranslatorCache; | 924 shader_translator_cache_ = new gpu::gles2::ShaderTranslatorCache; |
925 return shader_translator_cache_; | 925 return shader_translator_cache_; |
926 } | 926 } |
927 | 927 |
928 SyncPointManager* GpuInProcessThread::sync_point_manager() { | 928 SyncPointManager* GpuInProcessThread::sync_point_manager() { |
929 return sync_point_manager_; | 929 return sync_point_manager_; |
930 } | 930 } |
931 | 931 |
932 } // namespace gpu | 932 } // namespace gpu |
OLD | NEW |