| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CAST_H_ | 5 #ifndef UI_OZONE_PLATFORM_CAST_GPU_PLATFORM_SUPPORT_CAST_H_ |
| 6 #define CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CAST_H_ | 6 #define UI_OZONE_PLATFORM_CAST_GPU_PLATFORM_SUPPORT_CAST_H_ |
| 7 | 7 |
| 8 #include "ui/ozone/public/gpu_platform_support.h" | 8 #include "ui/ozone/public/gpu_platform_support.h" |
| 9 | 9 |
| 10 namespace chromecast { | 10 namespace ui { |
| 11 namespace ozone { | |
| 12 | 11 |
| 13 class SurfaceFactoryCast; | 12 class SurfaceFactoryCast; |
| 14 | 13 |
| 15 // GpuPlatformSupport implementation for use with OzonePlatformCast. | 14 // GpuPlatformSupport implementation for use with OzonePlatformCast. |
| 16 class GpuPlatformSupportCast : public ui::GpuPlatformSupport { | 15 class GpuPlatformSupportCast : public GpuPlatformSupport { |
| 17 public: | 16 public: |
| 18 explicit GpuPlatformSupportCast(SurfaceFactoryCast* parent) | 17 explicit GpuPlatformSupportCast(SurfaceFactoryCast* parent) |
| 19 : parent_(parent) {} | 18 : parent_(parent) {} |
| 20 | 19 |
| 21 // GpuPlatformSupport implementation: | 20 // GpuPlatformSupport implementation: |
| 22 void OnChannelEstablished(IPC::Sender* sender) override {} | 21 void OnChannelEstablished(IPC::Sender* sender) override {} |
| 23 bool OnMessageReceived(const IPC::Message& msg) override; | 22 bool OnMessageReceived(const IPC::Message& msg) override; |
| 24 void RelinquishGpuResources(const base::Closure& callback) override; | 23 void RelinquishGpuResources(const base::Closure& callback) override; |
| 25 IPC::MessageFilter* GetMessageFilter() override; | 24 IPC::MessageFilter* GetMessageFilter() override; |
| 26 | 25 |
| 27 private: | 26 private: |
| 28 SurfaceFactoryCast* parent_; | 27 SurfaceFactoryCast* parent_; |
| 29 | 28 |
| 30 DISALLOW_COPY_AND_ASSIGN(GpuPlatformSupportCast); | 29 DISALLOW_COPY_AND_ASSIGN(GpuPlatformSupportCast); |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 } // namespace ozone | 32 } // namespace ui |
| 34 } // namespace chromecast | |
| 35 | 33 |
| 36 #endif // CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CAST_H_ | 34 #endif // UI_OZONE_PLATFORM_CAST_GPU_PLATFORM_SUPPORT_CAST_H_ |
| OLD | NEW |