16d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
26d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
36d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// found in the LICENSE file.
46d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
56d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#include "ui/ozone/public/gpu_platform_support_host.h"
66d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
76d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#include "base/debug/trace_event.h"
86d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#include "base/logging.h"
96d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#include "ui/ozone/ozone_export.h"
106d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
116d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)namespace ui {
126d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
136d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)namespace {
146d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
156d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// No-op implementations of GpuPlatformSupportHost.
166d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)class StubGpuPlatformSupportHost : public GpuPlatformSupportHost {
176d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles) public:
186d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  // GpuPlatformSupportHost:
196d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  virtual void OnChannelEstablished(int host_id, IPC::Sender* sender) OVERRIDE {
206d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  }
216d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  virtual void OnChannelDestroyed(int host_id) OVERRIDE {}
226d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  virtual bool OnMessageReceived(const IPC::Message&) OVERRIDE { return false; }
236d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)};
246d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
256d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)}  // namespace
266d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
276d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)GpuPlatformSupportHost::GpuPlatformSupportHost() {
286d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)}
296d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
306d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)GpuPlatformSupportHost::~GpuPlatformSupportHost() {
316d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)}
326d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
336d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)GpuPlatformSupportHost* CreateStubGpuPlatformSupportHost() {
346d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  return new StubGpuPlatformSupportHost;
356d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)}
366d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
376d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)}  // namespace ui
38