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

Side by Side Diff: ui/ozone/platform/drm/gpu/gbm_surface_factory.h

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
7 7
8 #include "ui/ozone/platform/drm/gpu/drm_surface_factory.h" 8 #include "ui/ozone/platform/drm/gpu/drm_surface_factory.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 19 matching lines...) Expand all
30 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; 30 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
31 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 31 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
32 gfx::AcceleratedWidget widget) override; 32 gfx::AcceleratedWidget widget) override;
33 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( 33 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
34 gfx::AcceleratedWidget w) override; 34 gfx::AcceleratedWidget w) override;
35 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget( 35 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget(
36 gfx::AcceleratedWidget widget) override; 36 gfx::AcceleratedWidget widget) override;
37 scoped_refptr<ui::NativePixmap> CreateNativePixmap( 37 scoped_refptr<ui::NativePixmap> CreateNativePixmap(
38 gfx::AcceleratedWidget widget, 38 gfx::AcceleratedWidget widget,
39 gfx::Size size, 39 gfx::Size size,
40 BufferFormat format, 40 gfx::BufferFormat format,
41 BufferUsage usage) override; 41 gfx::BufferUsage usage) override;
42 bool CanShowPrimaryPlaneAsOverlay() override; 42 bool CanShowPrimaryPlaneAsOverlay() override;
43 bool CanCreateNativePixmap(BufferUsage usage) override; 43 bool CanCreateNativePixmap(gfx::BufferUsage usage) override;
44 44
45 private: 45 private:
46 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget); 46 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget);
47 47
48 bool allow_surfaceless_; 48 bool allow_surfaceless_;
49 49
50 DrmDeviceManager* drm_device_manager_; // Not owned. 50 DrmDeviceManager* drm_device_manager_; // Not owned.
51 51
52 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); 52 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
53 }; 53 };
54 54
55 } // namespace ui 55 } // namespace ui
56 56
57 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 57 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698