| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright 2011 Google Inc. |    2  * Copyright 2011 Google Inc. | 
|    3  * |    3  * | 
|    4  * Use of this source code is governed by a BSD-style license that can be |    4  * Use of this source code is governed by a BSD-style license that can be | 
|    5  * found in the LICENSE file. |    5  * found in the LICENSE file. | 
|    6  */ |    6  */ | 
|    7  |    7  | 
|    8 #ifndef SkPictureData_DEFINED |    8 #ifndef SkPictureData_DEFINED | 
|    9 #define SkPictureData_DEFINED |    9 #define SkPictureData_DEFINED | 
|   10  |   10  | 
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  135  |  135  | 
|  136     const SkTextBlob* getTextBlob(SkReader32* reader) const { |  136     const SkTextBlob* getTextBlob(SkReader32* reader) const { | 
|  137         int index = reader->readInt(); |  137         int index = reader->readInt(); | 
|  138         SkASSERT(index > 0 && index <= fTextBlobCount); |  138         SkASSERT(index > 0 && index <= fTextBlobCount); | 
|  139         return fTextBlobRefs[index - 1]; |  139         return fTextBlobRefs[index - 1]; | 
|  140     } |  140     } | 
|  141  |  141  | 
|  142     void initIterator(SkPictureStateTree::Iterator* iter, |  142     void initIterator(SkPictureStateTree::Iterator* iter, | 
|  143                       const SkTDArray<void*>& draws, |  143                       const SkTDArray<void*>& draws, | 
|  144                       SkCanvas* canvas) const { |  144                       SkCanvas* canvas) const { | 
|  145         if (NULL != fStateTree) { |  145         if (fStateTree) { | 
|  146             fStateTree->initIterator(iter, draws, canvas); |  146             fStateTree->initIterator(iter, draws, canvas); | 
|  147         } |  147         } | 
|  148     } |  148     } | 
|  149  |  149  | 
|  150 #if SK_SUPPORT_GPU |  150 #if SK_SUPPORT_GPU | 
|  151     /** |  151     /** | 
|  152      * sampleCount is the number of samples-per-pixel or zero if non-MSAA. |  152      * sampleCount is the number of samples-per-pixel or zero if non-MSAA. | 
|  153      * It is defaulted to be zero. |  153      * It is defaulted to be zero. | 
|  154      */ |  154      */ | 
|  155     bool suitableForGpuRasterization(GrContext* context, const char **reason, |  155     bool suitableForGpuRasterization(GrContext* context, const char **reason, | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  203  |  203  | 
|  204     const SkPictInfo fInfo; |  204     const SkPictInfo fInfo; | 
|  205  |  205  | 
|  206     static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); |  206     static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); | 
|  207     static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); |  207     static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); | 
|  208  |  208  | 
|  209     void initForPlayback() const; |  209     void initForPlayback() const; | 
|  210 }; |  210 }; | 
|  211  |  211  | 
|  212 #endif |  212 #endif | 
| OLD | NEW |