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_ |