OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ | 5 #ifndef UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
6 #define UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ | 6 #define UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/gfx/ozone/surface_factory_ozone.h" | 9 #include "ui/gfx/ozone/surface_factory_ozone.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | 34 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
35 | 35 |
36 virtual bool AttemptToResizeAcceleratedWidget( | 36 virtual bool AttemptToResizeAcceleratedWidget( |
37 gfx::AcceleratedWidget w, | 37 gfx::AcceleratedWidget w, |
38 const gfx::Rect& bounds) OVERRIDE; | 38 const gfx::Rect& bounds) OVERRIDE; |
39 | 39 |
40 virtual bool SchedulePageFlip(gfx::AcceleratedWidget w) OVERRIDE; | 40 virtual bool SchedulePageFlip(gfx::AcceleratedWidget w) OVERRIDE; |
41 | 41 |
42 virtual SkCanvas* GetCanvasForWidget(gfx::AcceleratedWidget w) OVERRIDE; | 42 virtual SkCanvas* GetCanvasForWidget(gfx::AcceleratedWidget w) OVERRIDE; |
43 | 43 |
44 virtual gfx::VSyncProvider* GetVSyncProvider( | 44 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider( |
45 gfx::AcceleratedWidget w) OVERRIDE; | 45 gfx::AcceleratedWidget w) OVERRIDE; |
46 | 46 |
47 private: | 47 private: |
48 virtual DriSurface* CreateSurface( | 48 virtual DriSurface* CreateSurface( |
49 HardwareDisplayController* controller); | 49 HardwareDisplayController* controller); |
50 | 50 |
51 virtual DriWrapper* CreateWrapper(); | 51 virtual DriWrapper* CreateWrapper(); |
52 | 52 |
53 virtual bool InitializeControllerForPrimaryDisplay( | 53 virtual bool InitializeControllerForPrimaryDisplay( |
54 DriWrapper* drm, | 54 DriWrapper* drm, |
(...skipping 11 matching lines...) Expand all Loading... |
66 | 66 |
67 // Active output. | 67 // Active output. |
68 scoped_ptr<HardwareDisplayController> controller_; | 68 scoped_ptr<HardwareDisplayController> controller_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); | 70 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace gfx | 73 } // namespace gfx |
74 | 74 |
75 #endif // UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ | 75 #endif // UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
OLD | NEW |