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

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

Issue 1240353002: ozone: rename to GpuMemoryBuffer(Factory|Impl)OzoneNativePixmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nits in comments Created 5 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 | « content/content_common.gypi ('k') | ui/gfx/gpu_memory_buffer.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 <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
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
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
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | ui/gfx/gpu_memory_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698