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

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

Issue 17916003: Temporary change to keep chrome happy. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Prevent the playback from being deleted. 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 /**
61 * Recreate a picture that was serialized into a stream. 67 * Recreate a picture that was serialized into a stream.
62 * @param SkStream Serialized picture data. 68 * @param SkStream Serialized picture data.
63 * @param proc Function pointer for installing pixelrefs on SkBitmaps repre senting the 69 * @param proc Function pointer for installing pixelrefs on SkBitmaps repre senting the
64 * encoded bitmap data from the stream. 70 * encoded bitmap data from the stream.
65 * @return A new SkPicture representing the serialized data, or NULL if the stream is 71 * @return A new SkPicture representing the serialized data, or NULL if the stream is
66 * invalid. 72 * invalid.
67 */ 73 */
68 static SkPicture* CreateFromStream(SkStream*, 74 static SkPicture* CreateFromStream(SkStream*,
69 InstallPixelRefProc proc = &SkImageDecode r::DecodeMemory); 75 InstallPixelRefProc proc = &SkImageDecode r::DecodeMemory);
70 76
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 */ 275 */
270 class SK_API SkDrawPictureCallback { 276 class SK_API SkDrawPictureCallback {
271 public: 277 public:
272 SkDrawPictureCallback() {} 278 SkDrawPictureCallback() {}
273 virtual ~SkDrawPictureCallback() {} 279 virtual ~SkDrawPictureCallback() {}
274 280
275 virtual bool abortDrawing() = 0; 281 virtual bool abortDrawing() = 0;
276 }; 282 };
277 283
278 #endif 284 #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