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

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

Issue 2752393002: gpu: Add SequenceId for identifying sync point sequences. (Closed)
Patch Set: piman's review 3 Created 3 years, 9 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/ipc/service/gpu_channel.cc ('k') | gpu/ipc/service/gpu_channel_manager.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_MANAGER_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_
6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 GpuMemoryManager* gpu_memory_manager() { return &gpu_memory_manager_; } 112 GpuMemoryManager* gpu_memory_manager() { return &gpu_memory_manager_; }
113 113
114 GpuChannel* LookupChannel(int32_t client_id) const; 114 GpuChannel* LookupChannel(int32_t client_id) const;
115 115
116 gl::GLSurface* GetDefaultOffscreenSurface(); 116 gl::GLSurface* GetDefaultOffscreenSurface();
117 117
118 GpuMemoryBufferFactory* gpu_memory_buffer_factory() { 118 GpuMemoryBufferFactory* gpu_memory_buffer_factory() {
119 return gpu_memory_buffer_factory_; 119 return gpu_memory_buffer_factory_;
120 } 120 }
121 121
122 // Returns the maximum order number for unprocessed IPC messages across all
123 // channels.
124 uint32_t GetUnprocessedOrderNum() const;
125
126 // Returns the maximum order number for processed IPC messages across all
127 // channels.
128 uint32_t GetProcessedOrderNum() const;
129
130 #if defined(OS_ANDROID) 122 #if defined(OS_ANDROID)
131 void DidAccessGpu(); 123 void DidAccessGpu();
132 #endif 124 #endif
133 125
134 bool is_exiting_for_lost_context() { 126 bool is_exiting_for_lost_context() {
135 return exiting_for_lost_context_; 127 return exiting_for_lost_context_;
136 } 128 }
137 129
138 gles2::MailboxManager* mailbox_manager() const { 130 gles2::MailboxManager* mailbox_manager() const {
139 return mailbox_manager_.get(); 131 return mailbox_manager_.get();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // that any WeakPtrs to Controller are invalidated before its members 200 // that any WeakPtrs to Controller are invalidated before its members
209 // variable's destructors are executed, rendering them invalid. 201 // variable's destructors are executed, rendering them invalid.
210 base::WeakPtrFactory<GpuChannelManager> weak_factory_; 202 base::WeakPtrFactory<GpuChannelManager> weak_factory_;
211 203
212 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 204 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
213 }; 205 };
214 206
215 } // namespace gpu 207 } // namespace gpu
216 208
217 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ 209 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel.cc ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698