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

Side by Side Diff: include/core/SkPicture.h

Issue 18655008: Revert "Temporary change to keep chrome happy." (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkPicture.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 2007 The Android Open Source Project 3 * Copyright 2007 The Android Open Source Project
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 8
9 9
10 #ifndef SkPicture_DEFINED 10 #ifndef SkPicture_DEFINED
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 * copied. If the pixelref defers the actual decode until its lockPixels() is called, then it 51 * copied. If the pixelref defers the actual decode until its lockPixels() is called, then it
52 * must make a copy of the src buffer. 52 * must make a copy of the src buffer.
53 * @param src Encoded data. 53 * @param src Encoded data.
54 * @param length Size of the encoded data, in bytes. 54 * @param length Size of the encoded data, in bytes.
55 * @param dst SkBitmap to install the pixel ref on. 55 * @param dst SkBitmap to install the pixel ref on.
56 * @param bool Whether or not a pixel ref was successfully installed. 56 * @param bool Whether or not a pixel ref was successfully installed.
57 */ 57 */
58 typedef bool (*InstallPixelRefProc)(const void* src, size_t length, SkBitmap * dst); 58 typedef bool (*InstallPixelRefProc)(const void* src, size_t length, SkBitmap * dst);
59 59
60 /** 60 /**
61 * @Deprecated - use CreateFromStream instead.
62 * Create an SkPicture from an SkStream.
63 */
64 SkPicture(SkStream*, bool*, InstallPixelRefProc);
65
66 /**
67 * Recreate a picture that was serialized into a stream. 61 * Recreate a picture that was serialized into a stream.
68 * @param SkStream Serialized picture data. 62 * @param SkStream Serialized picture data.
69 * @param proc Function pointer for installing pixelrefs on SkBitmaps repre senting the 63 * @param proc Function pointer for installing pixelrefs on SkBitmaps repre senting the
70 * encoded bitmap data from the stream. 64 * encoded bitmap data from the stream.
71 * @return A new SkPicture representing the serialized data, or NULL if the stream is 65 * @return A new SkPicture representing the serialized data, or NULL if the stream is
72 * invalid. 66 * invalid.
73 */ 67 */
74 static SkPicture* CreateFromStream(SkStream*, 68 static SkPicture* CreateFromStream(SkStream*,
75 InstallPixelRefProc proc = &SkImageDecode r::DecodeMemory); 69 InstallPixelRefProc proc = &SkImageDecode r::DecodeMemory);
76 70
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 */ 269 */
276 class SK_API SkDrawPictureCallback { 270 class SK_API SkDrawPictureCallback {
277 public: 271 public:
278 SkDrawPictureCallback() {} 272 SkDrawPictureCallback() {}
279 virtual ~SkDrawPictureCallback() {} 273 virtual ~SkDrawPictureCallback() {}
280 274
281 virtual bool abortDrawing() = 0; 275 virtual bool abortDrawing() = 0;
282 }; 276 };
283 277
284 #endif 278 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698