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 #include "ui/ozone/common/stub_client_native_pixmap_factory.h"
11 class StubClientNativePixmapFactory
: public ClientNativePixmapFactory
{
13 StubClientNativePixmapFactory() {}
14 ~StubClientNativePixmapFactory() override
{}
16 // ClientNativePixmapFactory:
17 void Initialize(base::ScopedFD device_fd
) override
{}
18 std::vector
<Configuration
> GetSupportedConfigurations() const override
{
19 return std::vector
<Configuration
>();
21 scoped_ptr
<ClientNativePixmap
> ImportFromHandle(
22 const gfx::NativePixmapHandle
& handle
,
23 const gfx::Size
& size
,
24 gfx::BufferUsage usage
) override
{
30 DISALLOW_COPY_AND_ASSIGN(StubClientNativePixmapFactory
);
35 ClientNativePixmapFactory
* CreateStubClientNativePixmapFactory() {
36 return new StubClientNativePixmapFactory
;