Move VISUAL_STATE promise to activation
[chromium-blink-merge.git] / ui / ozone / platform / cast / gpu_platform_support_cast.h
blobc23f89fff8e2dd1c84cc71a9ff4b7979eb3b476c
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 UI_OZONE_PLATFORM_CAST_GPU_PLATFORM_SUPPORT_CAST_H_
6 #define UI_OZONE_PLATFORM_CAST_GPU_PLATFORM_SUPPORT_CAST_H_
8 #include "ui/ozone/public/gpu_platform_support.h"
10 namespace ui {
12 class SurfaceFactoryCast;
14 // GpuPlatformSupport implementation for use with OzonePlatformCast.
15 class GpuPlatformSupportCast : public GpuPlatformSupport {
16 public:
17 explicit GpuPlatformSupportCast(SurfaceFactoryCast* parent)
18 : parent_(parent) {}
20 // GpuPlatformSupport implementation:
21 void OnChannelEstablished(IPC::Sender* sender) override {}
22 bool OnMessageReceived(const IPC::Message& msg) override;
23 void RelinquishGpuResources(const base::Closure& callback) override;
24 IPC::MessageFilter* GetMessageFilter() override;
26 private:
27 SurfaceFactoryCast* parent_;
29 DISALLOW_COPY_AND_ASSIGN(GpuPlatformSupportCast);
32 } // namespace ui
34 #endif // UI_OZONE_PLATFORM_CAST_GPU_PLATFORM_SUPPORT_CAST_H_