blob: 0f3e8a1f7f9e960e2d2192c1bd3f3c41069b8866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/public/gpu_platform_support.h"
#include "base/logging.h"
#include "ui/ozone/ozone_export.h"
namespace ui {
namespace {
// No-op implementation of GpuPlatformSupport.
class StubGpuPlatformSupport : public GpuPlatformSupport {
public:
// GpuPlatformSupport:
void OnChannelEstablished(IPC::Sender* sender) override {}
bool OnMessageReceived(const IPC::Message&) override { return false; }
void RelinquishGpuResources(const base::Closure& callback) override;
IPC::MessageFilter* GetMessageFilter() override { return nullptr; }
};
void StubGpuPlatformSupport::RelinquishGpuResources(
const base::Closure& callback) {
callback.Run();
}
} // namespace
GpuPlatformSupport::GpuPlatformSupport() {
}
GpuPlatformSupport::~GpuPlatformSupport() {
}
GpuPlatformSupport* CreateStubGpuPlatformSupport() {
return new StubGpuPlatformSupport;
}
} // namespace ui
|