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

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

Issue 2447533002: ui: Add ref-counting to GLFence class.
Patch Set: rebase Created 4 years, 1 month 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/gl_manager.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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 uint64_t GetMemoryUsage(); 150 uint64_t GetMemoryUsage();
151 151
152 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer( 152 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer(
153 const gfx::GpuMemoryBufferHandle& handle, 153 const gfx::GpuMemoryBufferHandle& handle,
154 const gfx::Size& size, 154 const gfx::Size& size,
155 gfx::BufferFormat format, 155 gfx::BufferFormat format,
156 uint32_t internalformat, 156 uint32_t internalformat,
157 SurfaceHandle surface_handle); 157 SurfaceHandle surface_handle);
158 158
159 std::unique_ptr<gl::GLFence> CreateFenceForGpuFence( 159 scoped_refptr<gl::GLFence> CreateFenceForGpuFence(
160 const gfx::GpuFenceHandle& handle); 160 const gfx::GpuFenceHandle& handle);
161 161
162 GpuChannelMessageFilter* filter() const { return filter_.get(); } 162 GpuChannelMessageFilter* filter() const { return filter_.get(); }
163 163
164 // Returns the global order number for the last processed IPC message. 164 // Returns the global order number for the last processed IPC message.
165 uint32_t GetProcessedOrderNum() const; 165 uint32_t GetProcessedOrderNum() const;
166 166
167 // Returns the global order number for the last unprocessed IPC message. 167 // Returns the global order number for the last unprocessed IPC message.
168 uint32_t GetUnprocessedOrderNum() const; 168 uint32_t GetUnprocessedOrderNum() const;
169 169
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 scoped_refptr<PreemptionFlag> preempting_flag_; 481 scoped_refptr<PreemptionFlag> preempting_flag_;
482 scoped_refptr<PreemptionFlag> preempted_flag_; 482 scoped_refptr<PreemptionFlag> preempted_flag_;
483 SyncPointManager* const sync_point_manager_; 483 SyncPointManager* const sync_point_manager_;
484 484
485 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); 485 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue);
486 }; 486 };
487 487
488 } // namespace gpu 488 } // namespace gpu
489 489
490 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_H_ 490 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698