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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2717233003: gpu: Use mojom API for getting video memory usage. (Closed)
Patch Set: . Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | gpu/ipc/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index f3f04ff4dc470ea2abcaa275c4f4da605dd92292..da3646ab674dc4a60753af39cbad055cd753c567 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -250,8 +250,6 @@ bool GpuChildThread::OnControlMessageReceived(const IPC::Message& msg) {
IPC_BEGIN_MESSAGE_MAP(GpuChildThread, msg)
IPC_MESSAGE_HANDLER(GpuMsg_Finalize, OnFinalize)
IPC_MESSAGE_HANDLER(GpuMsg_CollectGraphicsInfo, OnCollectGraphicsInfo)
- IPC_MESSAGE_HANDLER(GpuMsg_GetVideoMemoryUsageStats,
- OnGetVideoMemoryUsageStats)
IPC_MESSAGE_HANDLER(GpuMsg_Clean, OnClean)
IPC_MESSAGE_HANDLER(GpuMsg_Crash, OnCrash)
IPC_MESSAGE_HANDLER(GpuMsg_Hang, OnHang)
@@ -423,15 +421,6 @@ void GpuChildThread::OnCollectGraphicsInfo() {
#endif // OS_WIN
}
-void GpuChildThread::OnGetVideoMemoryUsageStats() {
- gpu::VideoMemoryUsageStats video_memory_usage_stats;
- if (gpu_channel_manager()) {
- gpu_channel_manager()->gpu_memory_manager()->GetVideoMemoryUsageStats(
- &video_memory_usage_stats);
- }
- Send(new GpuHostMsg_VideoMemoryUsageStats(video_memory_usage_stats));
-}
-
void GpuChildThread::OnClean() {
DVLOG(1) << "GPU: Removing all contexts";
if (gpu_channel_manager())
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | gpu/ipc/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698