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

Unified Diff: ui/ozone/public/gpu_platform_support.cc

Issue 712343003: Infrastructure for temportarily relinquishing GPU resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes suggested by dcheng 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
« no previous file with comments | « ui/ozone/public/gpu_platform_support.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/gpu_platform_support.cc
diff --git a/ui/ozone/public/gpu_platform_support.cc b/ui/ozone/public/gpu_platform_support.cc
index 4b7f52758495c7b5655da1209a79b63a85c01164..a2457cdcdb5446147eb4ffcf67a3fefde1c46270 100644
--- a/ui/ozone/public/gpu_platform_support.cc
+++ b/ui/ozone/public/gpu_platform_support.cc
@@ -17,8 +17,14 @@ class StubGpuPlatformSupport : public GpuPlatformSupport {
// GpuPlatformSupport:
void OnChannelEstablished(IPC::Sender* sender) override {}
bool OnMessageReceived(const IPC::Message&) override { return false; }
+ void RelinquishGpuResources(const base::Closure& callback) override;
};
+void StubGpuPlatformSupport::RelinquishGpuResources(
+ const base::Closure& callback) {
+ callback.Run();
+}
+
} // namespace
GpuPlatformSupport::GpuPlatformSupport() {
« no previous file with comments | « ui/ozone/public/gpu_platform_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698