| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2012 Google Inc. | 2  * Copyright 2012 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 SkPictureUtils_DEFINED | 8 #ifndef SkPictureUtils_DEFINED | 
| 9 #define SkPictureUtils_DEFINED | 9 #define SkPictureUtils_DEFINED | 
| 10 | 10 | 
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 71         SkTDArray<PixelRefAndRect> fArray; | 71         SkTDArray<PixelRefAndRect> fArray; | 
| 72 | 72 | 
| 73         typedef SkPixelRefContainer INHERITED; | 73         typedef SkPixelRefContainer INHERITED; | 
| 74     }; | 74     }; | 
| 75 | 75 | 
| 76     /** | 76     /** | 
| 77      *  Fill the provided pixel ref container with the picture's pixel ref | 77      *  Fill the provided pixel ref container with the picture's pixel ref | 
| 78      *  and rect information. | 78      *  and rect information. | 
| 79      */ | 79      */ | 
| 80     static void GatherPixelRefsAndRects(SkPicture* pict, SkPixelRefContainer* pr
    Cont); | 80     static void GatherPixelRefsAndRects(SkPicture* pict, SkPixelRefContainer* pr
    Cont); | 
|  | 81 | 
|  | 82     /** | 
|  | 83      *  How many bytes are allocated to hold the SkPicture. | 
|  | 84      *  Includes operations, parameters, bounding data, deletion listeners; | 
|  | 85      *  includes nested SkPictures, but does not include large objects that | 
|  | 86      *  SkRecord holds a reference to (e.g. paths, or pixels backing bitmaps). | 
|  | 87      */ | 
|  | 88     static size_t ApproximateBytesUsed(const SkPicture* pict); | 
| 81 }; | 89 }; | 
| 82 | 90 | 
| 83 #endif | 91 #endif | 
| OLD | NEW | 
|---|