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

Unified Diff: chromecast/ozone/gpu_platform_support_cast.h

Issue 1025453002: Implement common Ozone interface for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address lcwu comments 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
« no previous file with comments | « chromecast/ozone/cast_egl_platform.h ('k') | chromecast/ozone/gpu_platform_support_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/ozone/gpu_platform_support_cast.h
diff --git a/chromecast/ozone/gpu_platform_support_cast.h b/chromecast/ozone/gpu_platform_support_cast.h
new file mode 100644
index 0000000000000000000000000000000000000000..1659e0fb5c4f8de90bf027fee7c4482beec78a10
--- /dev/null
+++ b/chromecast/ozone/gpu_platform_support_cast.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_CAST_H_
+#define CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CAST_H_
+
+#include "ui/ozone/public/gpu_platform_support.h"
+
+namespace chromecast {
+namespace ozone {
+
+class SurfaceFactoryCast;
+
+// GpuPlatformSupport implementation for use with OzonePlatformCast.
+class GpuPlatformSupportCast : public ui::GpuPlatformSupport {
+ public:
+ explicit GpuPlatformSupportCast(SurfaceFactoryCast* 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:
+ SurfaceFactoryCast* parent_;
+
+ DISALLOW_COPY_AND_ASSIGN(GpuPlatformSupportCast);
+};
+
+} // namespace ozone
+} // namespace chromecast
+
+#endif // CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CAST_H_
« no previous file with comments | « chromecast/ozone/cast_egl_platform.h ('k') | chromecast/ozone/gpu_platform_support_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698