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

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

Issue 490233002: VaapiVideoAccelerator: make Vaapi accelerator work with ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't limit h264_bitstream_buffer_unittest to x11 Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/public/surface_factory_ozone.h" 5 #include "ui/ozone/public/surface_factory_ozone.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "ui/ozone/public/native_pixmap.h" 10 #include "ui/ozone/public/native_pixmap.h"
(...skipping 17 matching lines...) Expand all
28 28
29 SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() { 29 SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() {
30 DCHECK(impl_) << "No SurfaceFactoryOzone implementation set."; 30 DCHECK(impl_) << "No SurfaceFactoryOzone implementation set.";
31 return impl_; 31 return impl_;
32 } 32 }
33 33
34 intptr_t SurfaceFactoryOzone::GetNativeDisplay() { 34 intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
35 return 0; 35 return 0;
36 } 36 }
37 37
38 int SurfaceFactoryOzone::GetDrmFd() {
39 return -1;
40 }
41
38 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget( 42 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
39 gfx::AcceleratedWidget widget) { 43 gfx::AcceleratedWidget widget) {
40 NOTIMPLEMENTED(); 44 NOTIMPLEMENTED();
41 return scoped_ptr<SurfaceOzoneEGL>(); 45 return scoped_ptr<SurfaceOzoneEGL>();
42 } 46 }
43 47
44 scoped_ptr<SurfaceOzoneEGL> 48 scoped_ptr<SurfaceOzoneEGL>
45 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget( 49 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget(
46 gfx::AcceleratedWidget widget) { 50 gfx::AcceleratedWidget widget) {
47 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
(...skipping 29 matching lines...) Expand all
77 scoped_refptr<NativePixmap> buffer, 81 scoped_refptr<NativePixmap> buffer,
78 const gfx::Rect& display_bounds, 82 const gfx::Rect& display_bounds,
79 const gfx::RectF& crop_rect) { 83 const gfx::RectF& crop_rect) {
80 return false; 84 return false;
81 } 85 }
82 86
83 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { 87 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
84 return false; 88 return false;
85 } 89 }
86 } // namespace ui 90 } // namespace ui
OLDNEW
« ui/ozone/public/surface_factory_ozone.h ('K') | « ui/ozone/public/surface_factory_ozone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698