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

Unified Diff: chromecast/ozone/gpu_platform_support_chromecast.h

Issue 1025453002: Implement common Ozone interface for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
Index: chromecast/ozone/gpu_platform_support_chromecast.h
diff --git a/chromecast/ozone/gpu_platform_support_chromecast.h b/chromecast/ozone/gpu_platform_support_chromecast.h
new file mode 100644
index 0000000000000000000000000000000000000000..cb2aea9f6340ab0098271f06e391e2436931870f
--- /dev/null
+++ b/chromecast/ozone/gpu_platform_support_chromecast.h
@@ -0,0 +1,36 @@
+// Copyright 2015 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.
+
+#ifndef CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CHROMECAST_H_
+#define CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CHROMECAST_H_
+
+#include "ui/ozone/public/gpu_platform_support.h"
+
+namespace chromecast {
+namespace ozone {
+
+class SurfaceFactoryChromecast;
+
+// GpuPlatformSupport implementation for use with OzonePlatformChromecast.
+class GpuPlatformSupportChromecast : public ui::GpuPlatformSupport {
+ public:
+ explicit GpuPlatformSupportChromecast(SurfaceFactoryChromecast* parent)
+ : parent_(parent) {}
+
+ // GpuPlatformSupport implementation:
+ void OnChannelEstablished(IPC::Sender* sender) override {}
+ bool OnMessageReceived(const IPC::Message& msg) override;
+ void RelinquishGpuResources(const base::Closure& callback) override;
+ IPC::MessageFilter* GetMessageFilter() override;
+
+ private:
+ SurfaceFactoryChromecast* parent_;
+
+ DISALLOW_COPY_AND_ASSIGN(GpuPlatformSupportChromecast);
+};
+
+} // namespace ozone
+} // namespace chromecast
+
+#endif // CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CHROMECAST_H_

Powered by Google App Engine
This is Rietveld 408576698