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

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

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: Fix copyright notice on new files Created 3 years, 11 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/gl/init/gl_factory_x11.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surfaceless.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SURFACELESS_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 // ScheduleOverlayPlane(..) to schedule the buffer for presentation. 29 // ScheduleOverlayPlane(..) to schedule the buffer for presentation.
30 class GbmSurfaceless : public gl::SurfacelessEGL { 30 class GbmSurfaceless : public gl::SurfacelessEGL {
31 public: 31 public:
32 GbmSurfaceless(GbmSurfaceFactory* surface_factory, 32 GbmSurfaceless(GbmSurfaceFactory* surface_factory,
33 std::unique_ptr<DrmWindowProxy> window, 33 std::unique_ptr<DrmWindowProxy> window,
34 gfx::AcceleratedWidget widget); 34 gfx::AcceleratedWidget widget);
35 35
36 void QueueOverlayPlane(const OverlayPlane& plane); 36 void QueueOverlayPlane(const OverlayPlane& plane);
37 37
38 // gl::GLSurface: 38 // gl::GLSurface:
39 bool Initialize(GLSurface::Format format) override; 39 bool Initialize(gl::GLSurfaceFormat format) override;
40 gfx::SwapResult SwapBuffers() override; 40 gfx::SwapResult SwapBuffers() override;
41 bool ScheduleOverlayPlane(int z_order, 41 bool ScheduleOverlayPlane(int z_order,
42 gfx::OverlayTransform transform, 42 gfx::OverlayTransform transform,
43 gl::GLImage* image, 43 gl::GLImage* image,
44 const gfx::Rect& bounds_rect, 44 const gfx::Rect& bounds_rect,
45 const gfx::RectF& crop_rect) override; 45 const gfx::RectF& crop_rect) override;
46 bool IsOffscreen() override; 46 bool IsOffscreen() override;
47 gfx::VSyncProvider* GetVSyncProvider() override; 47 gfx::VSyncProvider* GetVSyncProvider() override;
48 bool SupportsAsyncSwap() override; 48 bool SupportsAsyncSwap() override;
49 bool SupportsPostSubBuffer() override; 49 bool SupportsPostSubBuffer() override;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool swap_buffers_pending_ = false; 99 bool swap_buffers_pending_ = false;
100 100
101 base::WeakPtrFactory<GbmSurfaceless> weak_factory_; 101 base::WeakPtrFactory<GbmSurfaceless> weak_factory_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); 103 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
104 }; 104 };
105 105
106 } // namespace ui 106 } // namespace ui
107 107
108 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ 108 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
OLDNEW
« no previous file with comments | « ui/gl/init/gl_factory_x11.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surfaceless.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698