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

Side by Side Diff: content/common/gpu/gpu_channel_manager.h

Issue 712343003: Infrastructure for temportarily relinquishing GPU resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes suggested by dcheng Created 6 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
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 CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type, 125 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
126 gfx::GpuMemoryBufferId id, 126 gfx::GpuMemoryBufferId id,
127 int client_id); 127 int client_id);
128 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferType type, 128 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferType type,
129 gfx::GpuMemoryBufferId id, 129 gfx::GpuMemoryBufferId id,
130 int client_id); 130 int client_id);
131 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type, 131 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
132 gfx::GpuMemoryBufferId id, 132 gfx::GpuMemoryBufferId id,
133 int client_id, 133 int client_id,
134 int32 sync_point); 134 int32 sync_point);
135 void OnRelinquishResources();
136 void OnResourcesRelinquished();
135 137
136 void OnLoseAllContexts(); 138 void OnLoseAllContexts();
137 139
138 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 140 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
139 base::WaitableEvent* shutdown_event_; 141 base::WaitableEvent* shutdown_event_;
140 142
141 // Used to send and receive IPC messages from the browser process. 143 // Used to send and receive IPC messages from the browser process.
142 MessageRouter* const router_; 144 MessageRouter* const router_;
143 145
144 // These objects manage channels to individual renderer processes there is 146 // These objects manage channels to individual renderer processes there is
(...skipping 17 matching lines...) Expand all
162 // that any WeakPtrs to Controller are invalidated before its members 164 // that any WeakPtrs to Controller are invalidated before its members
163 // variable's destructors are executed, rendering them invalid. 165 // variable's destructors are executed, rendering them invalid.
164 base::WeakPtrFactory<GpuChannelManager> weak_factory_; 166 base::WeakPtrFactory<GpuChannelManager> weak_factory_;
165 167
166 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 168 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
167 }; 169 };
168 170
169 } // namespace content 171 } // namespace content
170 172
171 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 173 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698