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

Side by Side Diff: ui/ozone/platform/caca/caca_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
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_SURFACE_FACTORY_H_ 5 #ifndef UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_ 6 #define UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_
7 7
8 #include <caca.h> 8 #include <caca.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/gfx/ozone/surface_factory_ozone.h" 11 #include "ui/ozone/public/surface_factory_ozone.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class SurfaceOzone; 14 class SurfaceOzone;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 18
19 class CacaConnection; 19 class CacaConnection;
20 20
21 class CacaSurfaceFactory : public gfx::SurfaceFactoryOzone { 21 class CacaSurfaceFactory : public ui::SurfaceFactoryOzone {
22 public: 22 public:
23 CacaSurfaceFactory(CacaConnection* connection); 23 CacaSurfaceFactory(CacaConnection* connection);
24 virtual ~CacaSurfaceFactory(); 24 virtual ~CacaSurfaceFactory();
25 25
26 // gfx::SurfaceFactoryOzone overrides: 26 // ui::SurfaceFactoryOzone overrides:
27 virtual HardwareState InitializeHardware() OVERRIDE; 27 virtual HardwareState InitializeHardware() OVERRIDE;
28 virtual void ShutdownHardware() OVERRIDE; 28 virtual void ShutdownHardware() OVERRIDE;
29 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 29 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
30 virtual bool LoadEGLGLES2Bindings( 30 virtual bool LoadEGLGLES2Bindings(
31 AddGLLibraryCallback add_gl_library, 31 AddGLLibraryCallback add_gl_library,
32 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; 32 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
33 virtual scoped_ptr<gfx::SurfaceOzoneCanvas> CreateCanvasForWidget( 33 virtual scoped_ptr<ui::SurfaceOzoneCanvas> CreateCanvasForWidget(
34 gfx::AcceleratedWidget widget) OVERRIDE; 34 gfx::AcceleratedWidget widget) OVERRIDE;
35 35
36 private: 36 private:
37 HardwareState state_; 37 HardwareState state_;
38 38
39 CacaConnection* connection_; // Not owned. 39 CacaConnection* connection_; // Not owned.
40 40
41 DISALLOW_COPY_AND_ASSIGN(CacaSurfaceFactory); 41 DISALLOW_COPY_AND_ASSIGN(CacaSurfaceFactory);
42 }; 42 };
43 43
44 } // namespace ui 44 } // namespace ui
45 45
46 #endif // UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_ 46 #endif // UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/caca/caca_event_factory.h ('k') | ui/ozone/platform/caca/caca_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698