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

Unified Diff: ui/ozone/public/ozone_platform.h

Issue 712343003: Infrastructure for temportarily relinquishing GPU resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean-up based on feedback from spang and jbauman 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/ozone_platform.h
diff --git a/ui/ozone/public/ozone_platform.h b/ui/ozone/public/ozone_platform.h
index c01800c021a4d94094bc047e0f872d6f32c6bd02..54c1e8a675b56e4ee943608bad2a9db20641b9e0 100644
--- a/ui/ozone/public/ozone_platform.h
+++ b/ui/ozone/public/ozone_platform.h
@@ -5,6 +5,7 @@
#ifndef UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
#define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
+#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "ui/ozone/ozone_export.h"
@@ -62,6 +63,7 @@ class OZONE_EXPORT OzonePlatform {
const gfx::Rect& bounds) = 0;
virtual scoped_ptr<ui::NativeDisplayDelegate>
CreateNativeDisplayDelegate() = 0;
+ virtual void RelinquishGpuResources(base::Closure callback);
private:
virtual void InitializeUI() = 0;

Powered by Google App Engine
This is Rietveld 408576698