| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 namespace gfx { | 38 namespace gfx { |
| 39 class GLShareGroup; | 39 class GLShareGroup; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace gpu { | 42 namespace gpu { |
| 43 struct GpuPreferences; | 43 struct GpuPreferences; |
| 44 class PreemptionFlag; | 44 class PreemptionFlag; |
| 45 class SyncPointClient; | 45 class SyncPointClient; |
| 46 class SyncPointManager; | 46 class SyncPointManager; |
| 47 struct SyncToken; | 47 struct SyncToken; |
| 48 union ValueState; | |
| 49 namespace gles2 { | 48 namespace gles2 { |
| 50 class FramebufferCompletenessCache; | 49 class FramebufferCompletenessCache; |
| 51 class MailboxManager; | 50 class MailboxManager; |
| 52 class ProgramCache; | 51 class ProgramCache; |
| 53 class ShaderTranslatorCache; | 52 class ShaderTranslatorCache; |
| 54 } | 53 } |
| 55 } | 54 } |
| 56 | 55 |
| 57 namespace IPC { | 56 namespace IPC { |
| 58 struct ChannelHandle; | 57 struct ChannelHandle; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 89 IPC::ChannelHandle EstablishChannel(int client_id, | 88 IPC::ChannelHandle EstablishChannel(int client_id, |
| 90 uint64_t client_tracing_id, | 89 uint64_t client_tracing_id, |
| 91 bool preempts, | 90 bool preempts, |
| 92 bool allow_view_command_buffers, | 91 bool allow_view_command_buffers, |
| 93 bool allow_real_time_streams); | 92 bool allow_real_time_streams); |
| 94 | 93 |
| 95 void PopulateShaderCache(const std::string& shader); | 94 void PopulateShaderCache(const std::string& shader); |
| 96 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 95 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
| 97 int client_id, | 96 int client_id, |
| 98 const SyncToken& sync_token); | 97 const SyncToken& sync_token); |
| 99 void UpdateValueState(int client_id, | |
| 100 unsigned int target, | |
| 101 const ValueState& state); | |
| 102 #if defined(OS_ANDROID) | 98 #if defined(OS_ANDROID) |
| 103 void WakeUpGpu(); | 99 void WakeUpGpu(); |
| 104 #endif | 100 #endif |
| 105 void DestroyAllChannels(); | 101 void DestroyAllChannels(); |
| 106 | 102 |
| 107 // Remove the channel for a particular renderer. | 103 // Remove the channel for a particular renderer. |
| 108 void RemoveChannel(int client_id); | 104 void RemoveChannel(int client_id); |
| 109 | 105 |
| 110 void LoseAllContexts(); | 106 void LoseAllContexts(); |
| 111 void MaybeExitOnContextLost(); | 107 void MaybeExitOnContextLost(); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // that any WeakPtrs to Controller are invalidated before its members | 228 // that any WeakPtrs to Controller are invalidated before its members |
| 233 // variable's destructors are executed, rendering them invalid. | 229 // variable's destructors are executed, rendering them invalid. |
| 234 base::WeakPtrFactory<GpuChannelManager> weak_factory_; | 230 base::WeakPtrFactory<GpuChannelManager> weak_factory_; |
| 235 | 231 |
| 236 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 232 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
| 237 }; | 233 }; |
| 238 | 234 |
| 239 } // namespace gpu | 235 } // namespace gpu |
| 240 | 236 |
| 241 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ | 237 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ |
| OLD | NEW |