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

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

Issue 1540963004: Switch to standard integer types in skia/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "skia/ext/platform_canvas.h" 5 #include "skia/ext/platform_canvas.h"
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h"
8 #include "skia/ext/bitmap_platform_device.h" 11 #include "skia/ext/bitmap_platform_device.h"
9 #include "skia/ext/platform_device.h" 12 #include "skia/ext/platform_device.h"
10 #include "third_party/skia/include/core/SkMetaData.h" 13 #include "third_party/skia/include/core/SkMetaData.h"
11 #include "third_party/skia/include/core/SkTypes.h" 14 #include "third_party/skia/include/core/SkTypes.h"
12 15
13 namespace { 16 namespace {
14 17
15 #if defined(OS_MACOSX) 18 #if defined(OS_MACOSX)
16 const char kIsPreviewMetafileKey[] = "CrIsPreviewMetafile"; 19 const char kIsPreviewMetafileKey[] = "CrIsPreviewMetafile";
17 20
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 SkBaseDevice* device = GetTopDevice(canvas); 128 SkBaseDevice* device = GetTopDevice(canvas);
126 PlatformDevice* platform_device = GetPlatformDevice(device); 129 PlatformDevice* platform_device = GetPlatformDevice(device);
127 return platform_device ? platform_device->GetBitmapContext() : 130 return platform_device ? platform_device->GetBitmapContext() :
128 nullptr; 131 nullptr;
129 } 132 }
130 133
131 #endif 134 #endif
132 135
133 136
134 } // namespace skia 137 } // namespace skia
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698