1 // Copyright 2014 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 #include "ui/ozone/public/gpu_platform_support_host.h"
7 #include "base/logging.h"
8 #include "base/trace_event/trace_event.h"
9 #include "ui/ozone/ozone_export.h"
15 // No-op implementations of GpuPlatformSupportHost.
16 class StubGpuPlatformSupportHost
: public GpuPlatformSupportHost
{
18 // GpuPlatformSupportHost:
19 void OnChannelEstablished(
21 scoped_refptr
<base::SingleThreadTaskRunner
> send_runner
,
22 const base::Callback
<void(IPC::Message
*)>& send_callback
) override
{}
24 void OnChannelDestroyed(int host_id
) override
{}
25 bool OnMessageReceived(const IPC::Message
&) override
{ return false; }
30 GpuPlatformSupportHost::GpuPlatformSupportHost() {
33 GpuPlatformSupportHost::~GpuPlatformSupportHost() {
36 GpuPlatformSupportHost
* CreateStubGpuPlatformSupportHost() {
37 return new StubGpuPlatformSupportHost
;