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

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

Issue 1071273002: NotForReview: Implement zero/one-copy texture for ozone freon using Intel DRM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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_GBM_SURFACE_FACTORY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GBM_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_DRM_GBM_SURFACE_FACTORY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GBM_SURFACE_FACTORY_H_
7 7
8 #include "ui/ozone/platform/drm/drm_surface_factory.h" 8 #include "ui/ozone/platform/drm/drm_surface_factory.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 21 matching lines...) Expand all
32 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 32 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
33 gfx::AcceleratedWidget widget) override; 33 gfx::AcceleratedWidget widget) override;
34 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( 34 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
35 gfx::AcceleratedWidget w) override; 35 gfx::AcceleratedWidget w) override;
36 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget( 36 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget(
37 gfx::AcceleratedWidget widget) override; 37 gfx::AcceleratedWidget widget) override;
38 scoped_refptr<ui::NativePixmap> CreateNativePixmap( 38 scoped_refptr<ui::NativePixmap> CreateNativePixmap(
39 gfx::AcceleratedWidget widget, 39 gfx::AcceleratedWidget widget,
40 gfx::Size size, 40 gfx::Size size,
41 BufferFormat format, 41 BufferFormat format,
42 BufferUsage usage) override; 42 BufferUsage usage,
43 gfx::GpuMemoryBufferHandle* handle) override;
43 OverlayCandidatesOzone* GetOverlayCandidates( 44 OverlayCandidatesOzone* GetOverlayCandidates(
44 gfx::AcceleratedWidget w) override; 45 gfx::AcceleratedWidget w) override;
45 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 46 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
46 int plane_z_order, 47 int plane_z_order,
47 gfx::OverlayTransform plane_transform, 48 gfx::OverlayTransform plane_transform,
48 scoped_refptr<NativePixmap> buffer, 49 scoped_refptr<NativePixmap> buffer,
49 const gfx::Rect& display_bounds, 50 const gfx::Rect& display_bounds,
50 const gfx::RectF& crop_rect) override; 51 const gfx::RectF& crop_rect) override;
51 bool CanShowPrimaryPlaneAsOverlay() override; 52 bool CanShowPrimaryPlaneAsOverlay() override;
52 bool CanCreateNativePixmap(BufferUsage usage) override; 53 bool CanCreateNativePixmap(BufferUsage usage) override;
53 54
54 private: 55 private:
55 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget); 56 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget);
56 57
57 bool allow_surfaceless_; 58 bool allow_surfaceless_;
58 59
59 DrmDeviceManager* drm_device_manager_; // Not owned. 60 DrmDeviceManager* drm_device_manager_; // Not owned.
60 61
61 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); 62 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
62 }; 63 };
63 64
64 } // namespace ui 65 } // namespace ui
65 66
66 #endif // UI_OZONE_PLATFORM_DRM_GBM_SURFACE_FACTORY_H_ 67 #endif // UI_OZONE_PLATFORM_DRM_GBM_SURFACE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698