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

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

Issue 47213009: Add callbacks to register EGL bindings from Ozone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/gfx/ozone/impl/file_surface_factory_ozone.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_OZONE_H_ 5 #ifndef UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_OZONE_H_
6 #define UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_OZONE_H_ 6 #define UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_OZONE_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"
(...skipping 10 matching lines...) Expand all
21 explicit FileSurfaceFactoryOzone(const base::FilePath& dump_location); 21 explicit FileSurfaceFactoryOzone(const base::FilePath& dump_location);
22 virtual ~FileSurfaceFactoryOzone(); 22 virtual ~FileSurfaceFactoryOzone();
23 23
24 private: 24 private:
25 // SurfaceFactoryOzone: 25 // SurfaceFactoryOzone:
26 virtual HardwareState InitializeHardware() OVERRIDE; 26 virtual HardwareState InitializeHardware() OVERRIDE;
27 virtual void ShutdownHardware() OVERRIDE; 27 virtual void ShutdownHardware() OVERRIDE;
28 virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 28 virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
29 virtual AcceleratedWidget RealizeAcceleratedWidget( 29 virtual AcceleratedWidget RealizeAcceleratedWidget(
30 AcceleratedWidget widget) OVERRIDE; 30 AcceleratedWidget widget) OVERRIDE;
31 virtual bool LoadEGLGLES2Bindings() OVERRIDE; 31 virtual bool LoadEGLGLES2Bindings(
32 AddGLLibraryCallback add_gl_library,
33 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
32 virtual bool AttemptToResizeAcceleratedWidget(AcceleratedWidget widget, 34 virtual bool AttemptToResizeAcceleratedWidget(AcceleratedWidget widget,
33 const Rect& bounds) OVERRIDE; 35 const Rect& bounds) OVERRIDE;
34 virtual bool SchedulePageFlip(AcceleratedWidget widget) OVERRIDE; 36 virtual bool SchedulePageFlip(AcceleratedWidget widget) OVERRIDE;
35 virtual SkCanvas* GetCanvasForWidget(AcceleratedWidget widget) OVERRIDE; 37 virtual SkCanvas* GetCanvasForWidget(AcceleratedWidget widget) OVERRIDE;
36 virtual VSyncProvider* GetVSyncProvider(AcceleratedWidget widget) OVERRIDE; 38 virtual VSyncProvider* GetVSyncProvider(AcceleratedWidget widget) OVERRIDE;
37 39
38 base::FilePath location_; 40 base::FilePath location_;
39 skia::RefPtr<SkBitmapDevice> device_; 41 skia::RefPtr<SkBitmapDevice> device_;
40 skia::RefPtr<SkCanvas> canvas_; 42 skia::RefPtr<SkCanvas> canvas_;
41 43
42 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactoryOzone); 44 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactoryOzone);
43 }; 45 };
44 46
45 } // namespace gfx 47 } // namespace gfx
46 48
47 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_OZONE_H_ 49 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/ozone/impl/file_surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698