Add support for H264 and VP9 to AndroidVDA
[chromium-blink-merge.git] / ui / ozone / public / surface_factory_ozone.cc
blobe74bfabcdfc6888e3949451819efc2b25b446f70
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 gfx::BufferFormat format,
54 gfx::BufferUsage usage) {
55 return NULL;
58 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
59 return false;
62 } // namespace ui