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

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: missed some 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698