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

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

Issue 406093002: ozone: Remove GetAcceleratedWidget from SurfaceFactoryOzone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
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"
(...skipping 15 matching lines...) Expand all
26 public HardwareCursorDelegate { 26 public HardwareCursorDelegate {
27 public: 27 public:
28 static const gfx::AcceleratedWidget kDefaultWidgetHandle; 28 static const gfx::AcceleratedWidget kDefaultWidgetHandle;
29 29
30 DriSurfaceFactory(DriWrapper* drm, ScreenManager* screen_manager); 30 DriSurfaceFactory(DriWrapper* drm, ScreenManager* screen_manager);
31 virtual ~DriSurfaceFactory(); 31 virtual ~DriSurfaceFactory();
32 32
33 // SurfaceFactoryOzone overrides: 33 // SurfaceFactoryOzone overrides:
34 virtual HardwareState InitializeHardware() OVERRIDE; 34 virtual HardwareState InitializeHardware() OVERRIDE;
35 virtual void ShutdownHardware() OVERRIDE; 35 virtual void ShutdownHardware() OVERRIDE;
36
37 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
38
39 virtual scoped_ptr<ui::SurfaceOzoneCanvas> CreateCanvasForWidget( 36 virtual scoped_ptr<ui::SurfaceOzoneCanvas> CreateCanvasForWidget(
40 gfx::AcceleratedWidget w) OVERRIDE; 37 gfx::AcceleratedWidget w) OVERRIDE;
41
42 virtual bool LoadEGLGLES2Bindings( 38 virtual bool LoadEGLGLES2Bindings(
43 AddGLLibraryCallback add_gl_library, 39 AddGLLibraryCallback add_gl_library,
44 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; 40 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
45 41
42 // Create a new window/surface/widget identifier.
43 virtual gfx::AcceleratedWidget GetAcceleratedWidget();
dnicoara 2014/07/21 20:35:25 nit: drop the "virtual"
spang 2014/07/21 20:38:02 Done.
44
45 // Determine dimensions of a widget.
46 gfx::Size GetWidgetSize(gfx::AcceleratedWidget w); 46 gfx::Size GetWidgetSize(gfx::AcceleratedWidget w);
47 47
48 // HardwareCursorDelegate: 48 // HardwareCursorDelegate:
49 virtual void SetHardwareCursor(gfx::AcceleratedWidget window, 49 virtual void SetHardwareCursor(gfx::AcceleratedWidget window,
50 const SkBitmap& image, 50 const SkBitmap& image,
51 const gfx::Point& location) OVERRIDE; 51 const gfx::Point& location) OVERRIDE;
52 virtual void MoveHardwareCursor(gfx::AcceleratedWidget window, 52 virtual void MoveHardwareCursor(gfx::AcceleratedWidget window,
53 const gfx::Point& location) OVERRIDE; 53 const gfx::Point& location) OVERRIDE;
54 54
55 protected: 55 protected:
(...skipping 12 matching lines...) Expand all
68 68
69 SkBitmap cursor_bitmap_; 69 SkBitmap cursor_bitmap_;
70 gfx::Point cursor_location_; 70 gfx::Point cursor_location_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); 72 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory);
73 }; 73 };
74 74
75 } // namespace ui 75 } // namespace ui
76 76
77 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ 77 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/caca/caca_window_manager.cc ('k') | ui/ozone/platform/dri/dri_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698