Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chromecast / ozone / gpu_platform_support_cast.h
blob1659e0fb5c4f8de90bf027fee7c4482beec78a10
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
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CAST_H_
6 #define CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CAST_H_
8 #include "ui/ozone/public/gpu_platform_support.h"
10 namespace chromecast {
11 namespace ozone {
13 class SurfaceFactoryCast;
15 // GpuPlatformSupport implementation for use with OzonePlatformCast.
16 class GpuPlatformSupportCast : public ui::GpuPlatformSupport {
17 public:
18 explicit GpuPlatformSupportCast(SurfaceFactoryCast* parent)
19 : parent_(parent) {}
21 // GpuPlatformSupport implementation:
22 void OnChannelEstablished(IPC::Sender* sender) override {}
23 bool OnMessageReceived(const IPC::Message& msg) override;
24 void RelinquishGpuResources(const base::Closure& callback) override;
25 IPC::MessageFilter* GetMessageFilter() override;
27 private:
28 SurfaceFactoryCast* parent_;
30 DISALLOW_COPY_AND_ASSIGN(GpuPlatformSupportCast);
33 } // namespace ozone
34 } // namespace chromecast
36 #endif // CHROMECAST_OZONE_GPU_PLATFORM_SUPPORT_CAST_H_