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

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

Issue 647973006: Remove a SkImageDecoder reference from SkPicture.h (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-encoder-02-debug-functionality
Patch Set: Created 6 years, 2 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 | « dm/DMPipeTask.cpp ('k') | include/core/SkWriteBuffer.h » ('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
11 #define SkPicture_DEFINED 11 #define SkPicture_DEFINED
12 12
13 #include "SkBitmap.h" 13 #include "SkBitmap.h"
14 #include "SkDrawPictureCallback.h" 14 #include "SkDrawPictureCallback.h"
15 #include "SkImageDecoder.h" 15 #include "SkRect.h"
16 #include "SkRefCnt.h" 16 #include "SkRefCnt.h"
17 #include "SkTDArray.h" 17 #include "SkTDArray.h"
18 18
19 #if SK_SUPPORT_GPU 19 #if SK_SUPPORT_GPU
20 class GrContext; 20 class GrContext;
21 #endif 21 #endif
22 22
23 class GrReplacements; 23 class GrReplacements;
24 class SkBBoxHierarchy; 24 class SkBBoxHierarchy;
25 class SkCanvas; 25 class SkCanvas;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 /** 85 /**
86 * Recreate a picture that was serialized into a stream. 86 * Recreate a picture that was serialized into a stream.
87 * @param SkStream Serialized picture data. 87 * @param SkStream Serialized picture data.
88 * @param proc Function pointer for installing pixelrefs on SkBitmaps repre senting the 88 * @param proc Function pointer for installing pixelrefs on SkBitmaps repre senting the
89 * encoded bitmap data from the stream. 89 * encoded bitmap data from the stream.
90 * @return A new SkPicture representing the serialized data, or NULL if the stream is 90 * @return A new SkPicture representing the serialized data, or NULL if the stream is
91 * invalid. 91 * invalid.
92 */ 92 */
93 static SkPicture* CreateFromStream(SkStream*, 93 static SkPicture* CreateFromStream(SkStream*,
94 InstallPixelRefProc proc = &SkImageDecode r::DecodeMemory); 94 InstallPixelRefProc proc);
95
96 /**
97 * Recreate a picture that was serialized into a stream. Uses all the defau lt
98 * image decoders that are compiled into the library.
99 * @param SkStream Serialized picture data.
100 * @return A new SkPicture representing the serialized data, or NULL if the stream is
101 * invalid.
102 */
103 static SkPicture* CreateFromStream(SkStream*);
95 104
96 /** 105 /**
97 * Recreate a picture that was serialized into a buffer. If the creation re quires bitmap 106 * Recreate a picture that was serialized into a buffer. If the creation re quires bitmap
98 * decoding, the decoder must be set on the SkReadBuffer parameter by calli ng 107 * decoding, the decoder must be set on the SkReadBuffer parameter by calli ng
99 * SkReadBuffer::setBitmapDecoder() before calling SkPicture::CreateFromBuf fer(). 108 * SkReadBuffer::setBitmapDecoder() before calling SkPicture::CreateFromBuf fer().
100 * @param SkReadBuffer Serialized picture data. 109 * @param SkReadBuffer Serialized picture data.
101 * @return A new SkPicture representing the serialized data, or NULL if the buffer is 110 * @return A new SkPicture representing the serialized data, or NULL if the buffer is
102 * invalid. 111 * invalid.
103 */ 112 */
104 static SkPicture* CreateFromBuffer(SkReadBuffer&); 113 static SkPicture* CreateFromBuffer(SkReadBuffer&);
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 bool fWillPlaybackBitmaps; 311 bool fWillPlaybackBitmaps;
303 bool fHasText; 312 bool fHasText;
304 int fNumPaintWithPathEffectUses; 313 int fNumPaintWithPathEffectUses;
305 int fNumFastPathDashEffects; 314 int fNumFastPathDashEffects;
306 int fNumAAConcavePaths; 315 int fNumAAConcavePaths;
307 int fNumAAHairlineConcavePaths; 316 int fNumAAHairlineConcavePaths;
308 } fAnalysis; 317 } fAnalysis;
309 }; 318 };
310 319
311 #endif 320 #endif
OLDNEW
« no previous file with comments | « dm/DMPipeTask.cpp ('k') | include/core/SkWriteBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698