blob: 7f839c822a6623f2ce570d46dfa968a3063ac1b7 [file] [log] [blame]
// Copyright 2016 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/platform/wayland/client_native_pixmap_factory_wayland.h"
#include "ui/gfx/linux/client_native_pixmap_factory_dmabuf.h"
#include "ui/ozone/common/stub_client_native_pixmap_factory.h"
#include "ui/ozone/public/ozone_platform.h"
namespace ui {
gfx::ClientNativePixmapFactory* CreateClientNativePixmapFactoryWayland() {
#if defined(WAYLAND_GBM)
return gfx::CreateClientNativePixmapFactoryDmabuf();
#else
return CreateStubClientNativePixmapFactory();
#endif
}
} // namespace ui