Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: ui/ozone/public/surface_factory_ozone.cc

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.h ('k') | ui/ozone/public/surface_ozone_canvas.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "ui/ozone/public/surface_factory_ozone.h"
6
7 #include <stdlib.h>
8
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"
13
14 namespace ui {
15
16 SurfaceFactoryOzone::SurfaceFactoryOzone() {
17 }
18
19 SurfaceFactoryOzone::~SurfaceFactoryOzone() {
20 }
21
22 intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
23 return 0;
24 }
25
26 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
27 gfx::AcceleratedWidget widget) {
28 NOTIMPLEMENTED();
29 return nullptr;
30 }
31
32 scoped_ptr<SurfaceOzoneEGL>
33 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget(
34 gfx::AcceleratedWidget widget) {
35 NOTIMPLEMENTED();
36 return nullptr;
37 }
38
39 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
40 gfx::AcceleratedWidget widget) {
41 NOTIMPLEMENTED();
42 return nullptr;
43 }
44
45 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
46 const int32* desired_attributes) {
47 return desired_attributes;
48 }
49
50 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
51 gfx::AcceleratedWidget widget,
52 gfx::Size size,
53 BufferFormat format,
54 BufferUsage usage) {
55 return NULL;
56 }
57
58 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
59 return false;
60 }
61
62 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) {
63 return false;
64 }
65
66 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.h ('k') | ui/ozone/public/surface_ozone_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698