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

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

Issue 247933003: ozone: caca: Fix the build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | ui/ozone/platform/caca/caca_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_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/gfx/ozone/surface_factory_ozone.h"
12 12
13 namespace gfx {
14 class SurfaceOzone;
15 }
16
13 namespace ui { 17 namespace ui {
14 18
15 class CacaConnection; 19 class CacaConnection;
16 20
17 class CacaSurfaceFactory : public gfx::SurfaceFactoryOzone { 21 class CacaSurfaceFactory : public gfx::SurfaceFactoryOzone {
18 public: 22 public:
19 CacaSurfaceFactory(CacaConnection* connection); 23 CacaSurfaceFactory(CacaConnection* connection);
20 virtual ~CacaSurfaceFactory(); 24 virtual ~CacaSurfaceFactory();
21 25
22 // gfx::SurfaceFactoryOzone overrides: 26 // gfx::SurfaceFactoryOzone overrides:
23 virtual HardwareState InitializeHardware() OVERRIDE; 27 virtual HardwareState InitializeHardware() OVERRIDE;
24 virtual void ShutdownHardware() OVERRIDE; 28 virtual void ShutdownHardware() OVERRIDE;
25 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 29 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
26 virtual bool LoadEGLGLES2Bindings( 30 virtual bool LoadEGLGLES2Bindings(
27 AddGLLibraryCallback add_gl_library, 31 AddGLLibraryCallback add_gl_library,
28 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; 32 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
29 virtual scoped_ptr<gfx::SurfaceOzone> CreateSurfaceForWidget( 33 virtual scoped_ptr<gfx::SurfaceOzoneCanvas> CreateCanvasForWidget(
30 gfx::AcceleratedWidget widget) OVERRIDE; 34 gfx::AcceleratedWidget widget) OVERRIDE;
31 35
32 private: 36 private:
33 HardwareState state_; 37 HardwareState state_;
34 38
35 CacaConnection* connection_; // Not owned. 39 CacaConnection* connection_; // Not owned.
36 40
37 DISALLOW_COPY_AND_ASSIGN(CacaSurfaceFactory); 41 DISALLOW_COPY_AND_ASSIGN(CacaSurfaceFactory);
38 }; 42 };
39 43
40 } // namespace ui 44 } // namespace ui
41 45
42 #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 | « no previous file | ui/ozone/platform/caca/caca_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698