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