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

Side by Side Diff: ui/ozone/platform/caca/caca_window_manager.h

Issue 399953003: ozone: Remove InitializeHardware / ShutdownHardware (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_CACA_CACA_WINDOW_MANAGER_H_ 5 #ifndef UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_
6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ 6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/ozone/public/surface_factory_ozone.h" 10 #include "ui/ozone/public/surface_factory_ozone.h"
(...skipping 11 matching lines...) Expand all
22 CacaWindowManager(); 22 CacaWindowManager();
23 virtual ~CacaWindowManager(); 23 virtual ~CacaWindowManager();
24 24
25 // Register a new libcaca window/instance. Returns the window id. 25 // Register a new libcaca window/instance. Returns the window id.
26 int32_t AddWindow(CacaWindow* window); 26 int32_t AddWindow(CacaWindow* window);
27 27
28 // Remove a libcaca window/instance. 28 // Remove a libcaca window/instance.
29 void RemoveWindow(int32_t window_id, CacaWindow* window); 29 void RemoveWindow(int32_t window_id, CacaWindow* window);
30 30
31 // ui::SurfaceFactoryOzone overrides: 31 // ui::SurfaceFactoryOzone overrides:
32 virtual HardwareState InitializeHardware() OVERRIDE;
33 virtual void ShutdownHardware() OVERRIDE;
34 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 32 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
35 virtual bool LoadEGLGLES2Bindings( 33 virtual bool LoadEGLGLES2Bindings(
36 AddGLLibraryCallback add_gl_library, 34 AddGLLibraryCallback add_gl_library,
37 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; 35 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
38 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 36 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
39 gfx::AcceleratedWidget widget) OVERRIDE; 37 gfx::AcceleratedWidget widget) OVERRIDE;
40 38
41 private: 39 private:
42 IDMap<CacaWindow> windows_; 40 IDMap<CacaWindow> windows_;
43 41
44 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager); 42 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager);
45 }; 43 };
46 44
47 } // namespace ui 45 } // namespace ui
48 46
49 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ 47 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698