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

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

Issue 205433002: ozone: Add OzoneSurface object that is owned by compositor, GLSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/ozone/dri/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/dri/dri_surface_factory.h
diff --git a/ui/gfx/ozone/dri/dri_surface_factory.h b/ui/gfx/ozone/dri/dri_surface_factory.h
index 3b958bdc691a1a91c3f75f1bb957be0f260cb0a3..34f2bdde0603d1af7cb970ffb313b4637ed1c9e8 100644
--- a/ui/gfx/ozone/dri/dri_surface_factory.h
+++ b/ui/gfx/ozone/dri/dri_surface_factory.h
@@ -8,12 +8,14 @@
#include "base/memory/scoped_ptr.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/ozone/surface_factory_ozone.h"
+#include "ui/gfx/ozone/surface_ozone.h"
namespace gfx {
class DriSurface;
class DriWrapper;
class HardwareDisplayController;
+class SurfaceOzone;
// SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers.
// This implementation is used in conjunction with the software rendering
@@ -27,23 +29,20 @@ class GFX_EXPORT DriSurfaceFactory : public SurfaceFactoryOzone {
virtual void ShutdownHardware() OVERRIDE;
virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
- virtual gfx::AcceleratedWidget RealizeAcceleratedWidget(
+
+ virtual scoped_ptr<SurfaceOzone> CreateSurfaceForWidget(
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 bool SchedulePageFlip(gfx::AcceleratedWidget w);
- virtual SkCanvas* GetCanvasForWidget(gfx::AcceleratedWidget w) OVERRIDE;
+ virtual SkCanvas* GetCanvasForWidget(gfx::AcceleratedWidget w);
virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider(
- gfx::AcceleratedWidget w) OVERRIDE;
+ gfx::AcceleratedWidget w);
void SetHardwareCursor(AcceleratedWidget window,
const SkBitmap& image,
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/ozone/dri/dri_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698