chrome/browser/extensions: Remove use of MessageLoopProxy and deprecated MessageLoop...
[chromium-blink-merge.git] / ui / ozone / public / surface_factory_ozone.cc
blob09344c430c79e4a6a4a6af772e3b72d527a0c3ee
1 // Copyright (c) 2013 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/surface_factory_ozone.h"
7 #include <stdlib.h>
9 #include "base/command_line.h"
10 #include "ui/ozone/public/native_pixmap.h"
11 #include "ui/ozone/public/surface_ozone_canvas.h"
12 #include "ui/ozone/public/surface_ozone_egl.h"
14 namespace ui {
16 SurfaceFactoryOzone::SurfaceFactoryOzone() {
19 SurfaceFactoryOzone::~SurfaceFactoryOzone() {
22 intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
23 return 0;
26 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
27 gfx::AcceleratedWidget widget) {
28 NOTIMPLEMENTED();
29 return nullptr;
32 scoped_ptr<SurfaceOzoneEGL>
33 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget(
34 gfx::AcceleratedWidget widget) {
35 NOTIMPLEMENTED();
36 return nullptr;
39 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
40 gfx::AcceleratedWidget widget) {
41 NOTIMPLEMENTED();
42 return nullptr;
45 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
46 const int32* desired_attributes) {
47 return desired_attributes;
50 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
51 gfx::AcceleratedWidget widget,
52 gfx::Size size,
53 BufferFormat format,
54 BufferUsage usage) {
55 return NULL;
58 bool SurfaceFactoryOzone::ScheduleOverlayPlane(
59 gfx::AcceleratedWidget widget,
60 int plane_z_order,
61 gfx::OverlayTransform plane_transform,
62 scoped_refptr<NativePixmap> buffer,
63 const gfx::Rect& display_bounds,
64 const gfx::RectF& crop_rect) {
65 return false;
68 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
69 return false;
72 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) {
73 return false;
76 } // namespace ui