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

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: Make callback optional. Other changes suggested by jbauman and spang 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 OnDeleteDefaultOffscreenSurface();
135 136
136 void OnLoseAllContexts(); 137 void OnLoseAllContexts();
137 138
138 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 139 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
139 base::WaitableEvent* shutdown_event_; 140 base::WaitableEvent* shutdown_event_;
140 141
141 // Used to send and receive IPC messages from the browser process. 142 // Used to send and receive IPC messages from the browser process.
142 MessageRouter* const router_; 143 MessageRouter* const router_;
143 144
144 // These objects manage channels to individual renderer processes there is 145 // 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 163 // that any WeakPtrs to Controller are invalidated before its members
163 // variable's destructors are executed, rendering them invalid. 164 // variable's destructors are executed, rendering them invalid.
164 base::WeakPtrFactory<GpuChannelManager> weak_factory_; 165 base::WeakPtrFactory<GpuChannelManager> weak_factory_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 167 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
167 }; 168 };
168 169
169 } // namespace content 170 } // namespace content
170 171
171 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 172 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698