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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_surfaceless.h

Issue 2165303002: Convert Ozone GBM to use new surface API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ozone_impl
Patch Set: Small fixes. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/gbm_surfaceless.h
diff --git a/ui/ozone/platform/drm/gpu/gbm_surfaceless.h b/ui/ozone/platform/drm/gpu/gbm_surfaceless.h
deleted file mode 100644
index 50e38caa75256a148c6075570ad6be82526bfdfd..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/drm/gpu/gbm_surfaceless.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
-#define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_
-
-#include <vector>
-
-#include "base/macros.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/ozone/platform/drm/gpu/overlay_plane.h"
-#include "ui/ozone/public/surface_ozone_egl.h"
-
-namespace gfx {
-class Size;
-}
-
-namespace ui {
-
-class DrmWindowProxy;
-class GbmSurfaceFactory;
-
-// In surfaceless mode drawing and displaying happens directly through
-// NativePixmap buffers. CC would call into SurfaceFactoryOzone to allocate the
-// buffers and then call ScheduleOverlayPlane(..) to schedule the buffer for
-// presentation.
-class GbmSurfaceless : public SurfaceOzoneEGL {
- public:
- GbmSurfaceless(std::unique_ptr<DrmWindowProxy> window,
- GbmSurfaceFactory* surface_manager);
- ~GbmSurfaceless() override;
-
- void QueueOverlayPlane(const OverlayPlane& plane);
-
- // SurfaceOzoneEGL:
- intptr_t GetNativeWindow() override;
- bool ResizeNativeWindow(const gfx::Size& viewport_size) override;
- bool OnSwapBuffers() override;
- void OnSwapBuffersAsync(const SwapCompletionCallback& callback) override;
- std::unique_ptr<gfx::VSyncProvider> CreateVSyncProvider() override;
- bool IsUniversalDisplayLinkDevice() override;
- void* /* EGLConfig */ GetEGLSurfaceConfig(
- const EglConfigCallbacks& egl) override;
-
- protected:
- std::unique_ptr<DrmWindowProxy> window_;
-
- GbmSurfaceFactory* surface_manager_;
-
- std::vector<OverlayPlane> planes_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_

Powered by Google App Engine
This is Rietveld 408576698