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

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

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce NativePixmapClient Created 5 years, 6 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 28 matching lines...) Expand all
39 gfx::Size size, 39 gfx::Size size,
40 BufferFormat format, 40 BufferFormat format,
41 BufferUsage usage) override; 41 BufferUsage usage) override;
42 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 42 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
43 int plane_z_order, 43 int plane_z_order,
44 gfx::OverlayTransform plane_transform, 44 gfx::OverlayTransform plane_transform,
45 scoped_refptr<NativePixmap> buffer, 45 scoped_refptr<NativePixmap> buffer,
46 const gfx::Rect& display_bounds, 46 const gfx::Rect& display_bounds,
47 const gfx::RectF& crop_rect) override; 47 const gfx::RectF& crop_rect) override;
48 bool CanShowPrimaryPlaneAsOverlay() override; 48 bool CanShowPrimaryPlaneAsOverlay() override;
49 bool CanCreateNativePixmap(BufferUsage usage) override;
50 49
51 private: 50 private:
52 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget); 51 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget);
53 52
54 bool allow_surfaceless_; 53 bool allow_surfaceless_;
55 54
56 DrmDeviceManager* drm_device_manager_; // Not owned. 55 DrmDeviceManager* drm_device_manager_; // Not owned.
57 56
58 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); 57 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
59 }; 58 };
60 59
61 } // namespace ui 60 } // namespace ui
62 61
63 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 62 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698