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

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

Issue 26541007: ozone: Allow building for ozone without depending on pango (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
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/gfx_export.h"
10 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
11 #include "ui/gfx/ozone/surface_factory_ozone.h" 12 #include "ui/gfx/ozone/surface_factory_ozone.h"
12 #include "ui/gfx/skia_util.h" 13 #include "ui/gfx/skia_util.h"
13 14
14 class SkBitmapDevice; 15 class SkBitmapDevice;
15 class SkCanvas; 16 class SkCanvas;
16 17
17 namespace gfx { 18 namespace gfx {
18 19
19 class FileSurfaceFactoryOzone : public SurfaceFactoryOzone { 20 class GFX_EXPORT FileSurfaceFactoryOzone : public SurfaceFactoryOzone {
20 public: 21 public:
21 explicit FileSurfaceFactoryOzone(const base::FilePath& dump_location); 22 explicit FileSurfaceFactoryOzone(const base::FilePath& dump_location);
22 virtual ~FileSurfaceFactoryOzone(); 23 virtual ~FileSurfaceFactoryOzone();
23 24
24 private: 25 private:
25 // SurfaceFactoryOzone: 26 // SurfaceFactoryOzone:
26 virtual HardwareState InitializeHardware() OVERRIDE; 27 virtual HardwareState InitializeHardware() OVERRIDE;
27 virtual void ShutdownHardware() OVERRIDE; 28 virtual void ShutdownHardware() OVERRIDE;
28 virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 29 virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
29 virtual AcceleratedWidget RealizeAcceleratedWidget( 30 virtual AcceleratedWidget RealizeAcceleratedWidget(
(...skipping 10 matching lines...) Expand all
40 base::FilePath location_; 41 base::FilePath location_;
41 skia::RefPtr<SkBitmapDevice> device_; 42 skia::RefPtr<SkBitmapDevice> device_;
42 skia::RefPtr<SkCanvas> canvas_; 43 skia::RefPtr<SkCanvas> canvas_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactoryOzone); 45 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactoryOzone);
45 }; 46 };
46 47
47 } // namespace gfx 48 } // namespace gfx
48 49
49 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_OZONE_H_ 50 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698