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

Unified Diff: ui/ozone/public/gpu_platform_support.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 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/public/gpu_platform_support.h
diff --git a/ui/ozone/public/gpu_platform_support.h b/ui/ozone/public/gpu_platform_support.h
index c912fa0af7898496f960ae4deaacf524d9c7d596..b164e87ed3e8b16d23744860fd09f6de9342790d 100644
--- a/ui/ozone/public/gpu_platform_support.h
+++ b/ui/ozone/public/gpu_platform_support.h
@@ -5,6 +5,7 @@
#ifndef UI_OZONE_PUBLIC_GPU_PLATFORM_SUPPORT_H_
#define UI_OZONE_PUBLIC_GPU_PLATFORM_SUPPORT_H_
+#include "base/callback.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "ui/ozone/ozone_base_export.h"
@@ -21,6 +22,8 @@ class OZONE_BASE_EXPORT GpuPlatformSupport : public IPC::Listener {
// Called when the GPU process is spun up & channel established.
virtual void OnChannelEstablished(IPC::Sender* sender) = 0;
+
+ virtual void RelinquishGpuResources(const base::Closure& callback);
spang 2014/11/20 18:08:22 Er, one last nit: can you leave this as a pure in
GusFernandez 2014/11/20 21:42:48 I also had to implement a stub implementation for
};
// Create a stub implementation.

Powered by Google App Engine
This is Rietveld 408576698