| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 switch (source_handle.type) { | 90 switch (source_handle.type) { |
| 91 case gfx::SHARED_MEMORY_BUFFER: { | 91 case gfx::SHARED_MEMORY_BUFFER: { |
| 92 gfx::GpuMemoryBufferHandle handle; | 92 gfx::GpuMemoryBufferHandle handle; |
| 93 handle.type = gfx::SHARED_MEMORY_BUFFER; | 93 handle.type = gfx::SHARED_MEMORY_BUFFER; |
| 94 handle.handle = ShareToGpuThread(source_handle.handle); | 94 handle.handle = ShareToGpuThread(source_handle.handle); |
| 95 *requires_sync_point = false; | 95 *requires_sync_point = false; |
| 96 return handle; | 96 return handle; |
| 97 } | 97 } |
| 98 case gfx::IO_SURFACE_BUFFER: | 98 case gfx::IO_SURFACE_BUFFER: |
| 99 case gfx::SURFACE_TEXTURE_BUFFER: | 99 case gfx::SURFACE_TEXTURE_BUFFER: |
| 100 case gfx::OZONE_NATIVE_BUFFER: | 100 case gfx::OZONE_NATIVE_PIXMAP: |
| 101 *requires_sync_point = true; | 101 *requires_sync_point = true; |
| 102 return source_handle; | 102 return source_handle; |
| 103 default: | 103 default: |
| 104 NOTREACHED(); | 104 NOTREACHED(); |
| 105 return gfx::GpuMemoryBufferHandle(); | 105 return gfx::GpuMemoryBufferHandle(); |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 | 108 |
| 109 scoped_refptr<InProcessCommandBuffer::Service> GetInitialService( | 109 scoped_refptr<InProcessCommandBuffer::Service> GetInitialService( |
| 110 const scoped_refptr<InProcessCommandBuffer::Service>& service) { | 110 const scoped_refptr<InProcessCommandBuffer::Service>& service) { |
| (...skipping 812 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 |