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

Unified Diff: gpu/ipc/common/memory_stats.mojom

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 | « gpu/ipc/common/OWNERS ('k') | gpu/ipc/common/memory_stats.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/memory_stats.mojom
diff --git a/gpu/ipc/common/memory_stats.mojom b/gpu/ipc/common/memory_stats.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..4fe8825bb61cffbdaf3ea47f81d9f400bb0f2aef
--- /dev/null
+++ b/gpu/ipc/common/memory_stats.mojom
@@ -0,0 +1,15 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module gpu.mojom;
+
+struct VideoMemoryProcessStats {
+ uint64 video_memory_bytes;
+ bool has_duplicates;
+};
+
+struct VideoMemoryUsageStats {
+ map<int32, VideoMemoryProcessStats> process_map;
+ uint64 bytes_allocated;
+};
« no previous file with comments | « gpu/ipc/common/OWNERS ('k') | gpu/ipc/common/memory_stats.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698