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

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

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

Powered by Google App Engine
This is Rietveld 408576698