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

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

Issue 2353453002: ui: Remove SurfaceTexture GpuMemoryBuffer type. (Closed)
Patch Set: ui: Remove SurfaceTexture GpuMemoryBuffer type. Created 4 years, 3 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/BUILD.gn ('k') | gpu/ipc/client/BUILD.gn » ('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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 case gfx::SHARED_MEMORY_BUFFER: { 112 case gfx::SHARED_MEMORY_BUFFER: {
113 gfx::GpuMemoryBufferHandle handle; 113 gfx::GpuMemoryBufferHandle handle;
114 handle.type = gfx::SHARED_MEMORY_BUFFER; 114 handle.type = gfx::SHARED_MEMORY_BUFFER;
115 handle.handle = ShareToGpuThread(source_handle.handle); 115 handle.handle = ShareToGpuThread(source_handle.handle);
116 handle.offset = source_handle.offset; 116 handle.offset = source_handle.offset;
117 handle.stride = source_handle.stride; 117 handle.stride = source_handle.stride;
118 *requires_sync_point = false; 118 *requires_sync_point = false;
119 return handle; 119 return handle;
120 } 120 }
121 case gfx::IO_SURFACE_BUFFER: 121 case gfx::IO_SURFACE_BUFFER:
122 case gfx::SURFACE_TEXTURE_BUFFER:
123 case gfx::OZONE_NATIVE_PIXMAP: 122 case gfx::OZONE_NATIVE_PIXMAP:
124 *requires_sync_point = true; 123 *requires_sync_point = true;
125 return source_handle; 124 return source_handle;
126 default: 125 default:
127 NOTREACHED(); 126 NOTREACHED();
128 return gfx::GpuMemoryBufferHandle(); 127 return gfx::GpuMemoryBufferHandle();
129 } 128 }
130 } 129 }
131 130
132 scoped_refptr<InProcessCommandBuffer::Service> GetInitialService( 131 scoped_refptr<InProcessCommandBuffer::Service> GetInitialService(
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 framebuffer_completeness_cache_ = 1055 framebuffer_completeness_cache_ =
1057 new gpu::gles2::FramebufferCompletenessCache; 1056 new gpu::gles2::FramebufferCompletenessCache;
1058 return framebuffer_completeness_cache_; 1057 return framebuffer_completeness_cache_;
1059 } 1058 }
1060 1059
1061 SyncPointManager* GpuInProcessThread::sync_point_manager() { 1060 SyncPointManager* GpuInProcessThread::sync_point_manager() {
1062 return sync_point_manager_; 1061 return sync_point_manager_;
1063 } 1062 }
1064 1063
1065 } // namespace gpu 1064 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/ipc/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698