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

Side by Side Diff: gpu/ipc/service/gpu_channel.h

Issue 2148983002: gpu: Take surface handle into account when importing buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid crash in DrmDeviceManager::GetDrmDevice when passed invalid widget Created 4 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 | « gpu/command_buffer/tests/texture_image_factory.cc ('k') | gpu/ipc/service/gpu_channel.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_H_
6 #define GPU_IPC_SERVICE_GPU_CHANNEL_H_ 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 void AddFilter(IPC::MessageFilter* filter); 142 void AddFilter(IPC::MessageFilter* filter);
143 void RemoveFilter(IPC::MessageFilter* filter); 143 void RemoveFilter(IPC::MessageFilter* filter);
144 144
145 uint64_t GetMemoryUsage(); 145 uint64_t GetMemoryUsage();
146 146
147 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer( 147 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer(
148 const gfx::GpuMemoryBufferHandle& handle, 148 const gfx::GpuMemoryBufferHandle& handle,
149 const gfx::Size& size, 149 const gfx::Size& size,
150 gfx::BufferFormat format, 150 gfx::BufferFormat format,
151 uint32_t internalformat); 151 uint32_t internalformat,
152 SurfaceHandle surface_handle);
152 153
153 GpuChannelMessageFilter* filter() const { return filter_.get(); } 154 GpuChannelMessageFilter* filter() const { return filter_.get(); }
154 155
155 // Returns the global order number for the last processed IPC message. 156 // Returns the global order number for the last processed IPC message.
156 uint32_t GetProcessedOrderNum() const; 157 uint32_t GetProcessedOrderNum() const;
157 158
158 // Returns the global order number for the last unprocessed IPC message. 159 // Returns the global order number for the last unprocessed IPC message.
159 uint32_t GetUnprocessedOrderNum() const; 160 uint32_t GetUnprocessedOrderNum() const;
160 161
161 // Returns the shared sync point global order data for the stream. 162 // Returns the shared sync point global order data for the stream.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 scoped_refptr<PreemptionFlag> preempting_flag_; 471 scoped_refptr<PreemptionFlag> preempting_flag_;
471 scoped_refptr<PreemptionFlag> preempted_flag_; 472 scoped_refptr<PreemptionFlag> preempted_flag_;
472 SyncPointManager* const sync_point_manager_; 473 SyncPointManager* const sync_point_manager_;
473 474
474 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); 475 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue);
475 }; 476 };
476 477
477 } // namespace gpu 478 } // namespace gpu
478 479
479 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_H_ 480 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/texture_image_factory.cc ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698