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

Unified Diff: ui/gfx/ozone/impl/dri_surface_factory.h

Issue 62953003: Support removal of DRI platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix use_ozone=0 Created 7 years, 1 month 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
« no previous file with comments | « ui/gfx/ozone/impl/dri_surface.cc ('k') | ui/gfx/ozone/impl/dri_surface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/impl/dri_surface_factory.h
diff --git a/ui/gfx/ozone/impl/dri_surface_factory.h b/ui/gfx/ozone/impl/dri_surface_factory.h
deleted file mode 100644
index 08e27929baaa7e23f4bc02bf40300b321e9bc022..0000000000000000000000000000000000000000
--- a/ui/gfx/ozone/impl/dri_surface_factory.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2013 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_GFX_OZONE_IMPL_DRI_SURFACE_FACTORY_H_
-#define UI_GFX_OZONE_IMPL_DRI_SURFACE_FACTORY_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/gfx/ozone/surface_factory_ozone.h"
-
-namespace gfx {
-
-class DriSurface;
-class DriWrapper;
-class HardwareDisplayController;
-
-// SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers.
-// This implementation is used in conjunction with the software rendering
-// path.
-class GFX_EXPORT DriSurfaceFactory : public SurfaceFactoryOzone {
- public:
- DriSurfaceFactory();
- virtual ~DriSurfaceFactory();
-
- virtual HardwareState InitializeHardware() OVERRIDE;
- virtual void ShutdownHardware() OVERRIDE;
-
- virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
- virtual gfx::AcceleratedWidget RealizeAcceleratedWidget(
- gfx::AcceleratedWidget w) OVERRIDE;
-
- virtual bool LoadEGLGLES2Bindings(
- AddGLLibraryCallback add_gl_library,
- SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
-
- virtual bool AttemptToResizeAcceleratedWidget(
- gfx::AcceleratedWidget w,
- const gfx::Rect& bounds) OVERRIDE;
-
- virtual bool SchedulePageFlip(gfx::AcceleratedWidget w) OVERRIDE;
-
- virtual SkCanvas* GetCanvasForWidget(gfx::AcceleratedWidget w) OVERRIDE;
-
- virtual gfx::VSyncProvider* GetVSyncProvider(
- gfx::AcceleratedWidget w) OVERRIDE;
-
- private:
- virtual DriSurface* CreateSurface(
- HardwareDisplayController* controller);
-
- virtual DriWrapper* CreateWrapper();
-
- virtual bool InitializeControllerForPrimaryDisplay(
- DriWrapper* drm,
- HardwareDisplayController* controller);
-
- // Blocks until a DRM event is read.
- // TODO(dnicoara) Remove once we can safely move DRM event processing in the
- // message loop while correctly signaling when we're done displaying the
- // pending frame.
- virtual void WaitForPageFlipEvent(int fd);
-
- scoped_ptr<DriWrapper> drm_;
-
- HardwareState state_;
-
- // Active output.
- scoped_ptr<HardwareDisplayController> controller_;
-
-
- DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory);
-};
-
-} // namespace gfx
-
-#endif // UI_GFX_OZONE_IMPL_DRI_SURFACE_FACTORY_H_
« no previous file with comments | « ui/gfx/ozone/impl/dri_surface.cc ('k') | ui/gfx/ozone/impl/dri_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698