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

Side by Side Diff: ui/gfx/ozone/impl/file_surface_factory.h

Issue 275263002: [wip] ozonex: X11 backend for ozone. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 years, 7 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 | « ui/gfx/ozone/DEPS ('k') | ui/gfx/ozone/impl/file_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 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_IMPL_FILE_SURFACE_FACTORY_H_ 5 #ifndef UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_
6 #define UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ 6 #define UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 #include "ui/gfx/ozone/surface_factory_ozone.h" 11 #include "ui/gfx/ozone/surface_factory_ozone.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 14
15 class GFX_EXPORT FileSurfaceFactory : public SurfaceFactoryOzone { 15 class GFX_EXPORT FileSurfaceFactory : public SurfaceFactoryOzone {
16 public: 16 public:
17 explicit FileSurfaceFactory(const base::FilePath& dump_location); 17 explicit FileSurfaceFactory(const base::FilePath& dump_location);
18 virtual ~FileSurfaceFactory(); 18 virtual ~FileSurfaceFactory();
19 19
20 private: 20 private:
21 // SurfaceFactoryOzone: 21 // SurfaceFactoryOzone:
22 virtual HardwareState InitializeHardware() OVERRIDE; 22 virtual HardwareState InitializeHardware() OVERRIDE;
23 virtual void ShutdownHardware() OVERRIDE; 23 virtual void ShutdownHardware() OVERRIDE;
24 virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 24 virtual intptr_t CreatePlatformWindow(ui::PlatformWindowDelegate*) OVERRIDE;
25 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 25 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
26 gfx::AcceleratedWidget w) OVERRIDE; 26 gfx::AcceleratedWidget w) OVERRIDE;
27 virtual bool LoadEGLGLES2Bindings( 27 virtual bool LoadEGLGLES2Bindings(
28 AddGLLibraryCallback add_gl_library, 28 AddGLLibraryCallback add_gl_library,
29 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; 29 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
30 30
31 base::FilePath location_; 31 base::FilePath location_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactory); 33 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactory);
34 }; 34 };
35 35
36 } // namespace gfx 36 } // namespace gfx
37 37
38 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ 38 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/gfx/ozone/DEPS ('k') | ui/gfx/ozone/impl/file_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698