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

Side by Side Diff: ui/ozone/platform/dri/dri_surface_factory.h

Issue 312393002: ozone: Move the factory interfaces into a common target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r278697 Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_surface_factory.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 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_DRI_DRI_SURFACE_FACTORY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
12 #include "ui/gfx/ozone/surface_factory_ozone.h"
13 #include "ui/ozone/ozone_export.h" 12 #include "ui/ozone/ozone_export.h"
13 #include "ui/ozone/public/surface_factory_ozone.h"
14 14
15 typedef struct _drmModeModeInfo drmModeModeInfo; 15 typedef struct _drmModeModeInfo drmModeModeInfo;
16 16
17 namespace gfx { 17 namespace gfx {
18 class SurfaceOzoneCanvas; 18 class SurfaceOzoneCanvas;
19 } 19 }
20 20
21 namespace ui { 21 namespace ui {
22 22
23 class DriSurface; 23 class DriSurface;
24 class DriWrapper; 24 class DriWrapper;
25 class HardwareDisplayController; 25 class HardwareDisplayController;
26 class ScreenManager; 26 class ScreenManager;
27 27
28 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. 28 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers.
29 // This implementation is used in conjunction with the software rendering 29 // This implementation is used in conjunction with the software rendering
30 // path. 30 // path.
31 class OZONE_EXPORT DriSurfaceFactory : public gfx::SurfaceFactoryOzone { 31 class OZONE_EXPORT DriSurfaceFactory : public ui::SurfaceFactoryOzone {
32 public: 32 public:
33 static const gfx::AcceleratedWidget kDefaultWidgetHandle; 33 static const gfx::AcceleratedWidget kDefaultWidgetHandle;
34 34
35 DriSurfaceFactory(DriWrapper* drm, ScreenManager* screen_manager); 35 DriSurfaceFactory(DriWrapper* drm, ScreenManager* screen_manager);
36 virtual ~DriSurfaceFactory(); 36 virtual ~DriSurfaceFactory();
37 37
38 // SurfaceFactoryOzone overrides: 38 // SurfaceFactoryOzone overrides:
39 virtual HardwareState InitializeHardware() OVERRIDE; 39 virtual HardwareState InitializeHardware() OVERRIDE;
40 virtual void ShutdownHardware() OVERRIDE; 40 virtual void ShutdownHardware() OVERRIDE;
41 41
42 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 42 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
43 43
44 virtual scoped_ptr<gfx::SurfaceOzoneCanvas> CreateCanvasForWidget( 44 virtual scoped_ptr<ui::SurfaceOzoneCanvas> CreateCanvasForWidget(
45 gfx::AcceleratedWidget w) OVERRIDE; 45 gfx::AcceleratedWidget w) OVERRIDE;
46 46
47 virtual bool LoadEGLGLES2Bindings( 47 virtual bool LoadEGLGLES2Bindings(
48 AddGLLibraryCallback add_gl_library, 48 AddGLLibraryCallback add_gl_library,
49 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; 49 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
50 50
51 gfx::Size GetWidgetSize(gfx::AcceleratedWidget w); 51 gfx::Size GetWidgetSize(gfx::AcceleratedWidget w);
52 52
53 void SetHardwareCursor(gfx::AcceleratedWidget window, 53 void SetHardwareCursor(gfx::AcceleratedWidget window,
54 const SkBitmap& image, 54 const SkBitmap& image,
(...skipping 21 matching lines...) Expand all
76 76
77 SkBitmap cursor_bitmap_; 77 SkBitmap cursor_bitmap_;
78 gfx::Point cursor_location_; 78 gfx::Point cursor_location_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); 80 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory);
81 }; 81 };
82 82
83 } // namespace ui 83 } // namespace ui
84 84
85 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ 85 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698