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

Side by Side Diff: skia/ext/bitmap_platform_device_cairo.cc

Issue 1540963004: Switch to standard integer types in skia/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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 <stdint.h>
6
7 #include "build/build_config.h"
5 #include "skia/ext/bitmap_platform_device_cairo.h" 8 #include "skia/ext/bitmap_platform_device_cairo.h"
6 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
7 10
8 #if defined(OS_OPENBSD) 11 #if defined(OS_OPENBSD)
9 #include <cairo.h> 12 #include <cairo.h>
10 #else 13 #else
11 #include <cairo/cairo.h> 14 #include <cairo/cairo.h>
12 #endif 15 #endif
13 16
14 namespace skia { 17 namespace skia {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // PlatformCanvas impl 191 // PlatformCanvas impl
189 192
190 SkCanvas* CreatePlatformCanvas(int width, int height, bool is_opaque, 193 SkCanvas* CreatePlatformCanvas(int width, int height, bool is_opaque,
191 uint8_t* data, OnFailureType failureType) { 194 uint8_t* data, OnFailureType failureType) {
192 skia::RefPtr<SkBaseDevice> dev = skia::AdoptRef( 195 skia::RefPtr<SkBaseDevice> dev = skia::AdoptRef(
193 BitmapPlatformDevice::Create(width, height, is_opaque, data)); 196 BitmapPlatformDevice::Create(width, height, is_opaque, data));
194 return CreateCanvas(dev, failureType); 197 return CreateCanvas(dev, failureType);
195 } 198 }
196 199
197 } // namespace skia 200 } // namespace skia
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698