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

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

Issue 2445323002: Ozone: Remove the caca platform from the tree (Closed)
Patch Set: Created 4 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
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_SCOPED_CACA_TYPES_H_
6 #define UI_OZONE_PLATFORM_CACA_SCOPED_CACA_TYPES_H_
7
8 #include <memory>
9
10 typedef struct caca_canvas caca_canvas_t;
11 typedef struct caca_dither caca_dither_t;
12 typedef struct caca_display caca_display_t;
13
14 namespace ui {
15
16 struct CacaCanvasDeleter {
17 void operator()(caca_canvas_t* canvas) const;
18 };
19
20 struct CacaDisplayDeleter {
21 void operator()(caca_display_t* display) const;
22 };
23
24 struct CacaDitherDeleter {
25 void operator()(caca_dither_t* dither) const;
26 };
27
28 typedef std::unique_ptr<caca_canvas_t, CacaCanvasDeleter> ScopedCacaCanvas;
29 typedef std::unique_ptr<caca_display_t, CacaDisplayDeleter> ScopedCacaDisplay;
30 typedef std::unique_ptr<caca_dither_t, CacaDitherDeleter> ScopedCacaDither;
31
32 } // namespace ui
33
34 #endif // UI_OZONE_PLATFORM_CACA_SCOPED_CACA_TYPES_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/caca/ozone_platform_caca.cc ('k') | ui/ozone/platform/caca/scoped_caca_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698