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

Side by Side Diff: include/utils/mac/SkCGUtils.h

Issue 2343933002: Revert of SkFontData to use smart pointers. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « include/ports/SkFontMgr.h ('k') | samplecode/SampleAnimator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkCGUtils_DEFINED 8 #ifndef SkCGUtils_DEFINED
9 #define SkCGUtils_DEFINED 9 #define SkCGUtils_DEFINED
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 /** 59 /**
60 * Draw the bitmap into the specified CG context. The bitmap will be converted 60 * Draw the bitmap into the specified CG context. The bitmap will be converted
61 * to a CGImage using the generic RGB colorspace. (x,y) specifies the position 61 * to a CGImage using the generic RGB colorspace. (x,y) specifies the position
62 * of the top-left corner of the bitmap. The bitmap is converted using the 62 * of the top-left corner of the bitmap. The bitmap is converted using the
63 * colorspace returned by CGColorSpaceCreateDeviceRGB() 63 * colorspace returned by CGColorSpaceCreateDeviceRGB()
64 */ 64 */
65 void SkCGDrawBitmap(CGContextRef, const SkBitmap&, float x, float y); 65 void SkCGDrawBitmap(CGContextRef, const SkBitmap&, float x, float y);
66 66
67 /** 67 /**
68 * Return a provider that wraps the specified stream. 68 * Create an SkBitmap drawing of the encoded PDF document, returning true on
69 * success. Deletes the stream when finished.
70 */
71 bool SkPDFDocumentToBitmap(SkStream* stream, SkBitmap* output);
72
73 /**
74 * Return a provider that wraps the specified stream. It will become the only
75 * owner of the stream, so the caller must stop referring to the stream.
76 *
69 * When the provider is finally deleted, it will delete the stream. 77 * When the provider is finally deleted, it will delete the stream.
70 */ 78 */
71 CGDataProviderRef SkCreateDataProviderFromStream(std::unique_ptr<SkStream>); 79 CGDataProviderRef SkCreateDataProviderFromStream(SkStream*);
72 80
73 CGDataProviderRef SkCreateDataProviderFromData(sk_sp<SkData>); 81 CGDataProviderRef SkCreateDataProviderFromData(SkData*);
74 82
75 #endif // defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) 83 #endif // defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
76 #endif // SkCGUtils_DEFINED 84 #endif // SkCGUtils_DEFINED
OLDNEW
« no previous file with comments | « include/ports/SkFontMgr.h ('k') | samplecode/SampleAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698