OLD | NEW |
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 #include "build/build_config.h" |
5 #include "skia/ext/bitmap_platform_device_cairo.h" | 6 #include "skia/ext/bitmap_platform_device_cairo.h" |
6 #include "skia/ext/platform_canvas.h" | 7 #include "skia/ext/platform_canvas.h" |
7 | 8 |
8 #if defined(OS_OPENBSD) | 9 #if defined(OS_OPENBSD) |
9 #include <cairo.h> | 10 #include <cairo.h> |
10 #else | 11 #else |
11 #include <cairo/cairo.h> | 12 #include <cairo/cairo.h> |
12 #endif | 13 #endif |
13 | 14 |
14 namespace skia { | 15 namespace skia { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // PlatformCanvas impl | 189 // PlatformCanvas impl |
189 | 190 |
190 SkCanvas* CreatePlatformCanvas(int width, int height, bool is_opaque, | 191 SkCanvas* CreatePlatformCanvas(int width, int height, bool is_opaque, |
191 uint8_t* data, OnFailureType failureType) { | 192 uint8_t* data, OnFailureType failureType) { |
192 skia::RefPtr<SkBaseDevice> dev = skia::AdoptRef( | 193 skia::RefPtr<SkBaseDevice> dev = skia::AdoptRef( |
193 BitmapPlatformDevice::Create(width, height, is_opaque, data)); | 194 BitmapPlatformDevice::Create(width, height, is_opaque, data)); |
194 return CreateCanvas(dev, failureType); | 195 return CreateCanvas(dev, failureType); |
195 } | 196 } |
196 | 197 |
197 } // namespace skia | 198 } // namespace skia |
OLD | NEW |