1 /*
2  * Copyright 2012 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkPictureUtils_DEFINED
9 #define SkPictureUtils_DEFINED
10 
11 #include "SkPicture.h"
12 
13 class SK_API SkPictureUtils {
14 public:
15     /**
16      *  How many bytes are allocated to hold the SkPicture.
17      *  Includes operations, parameters, bounding data, deletion listeners;
18      *  includes nested SkPictures, but does not include large objects that
19      *  SkRecord holds a reference to (e.g. paths, or pixels backing bitmaps).
20      */
21     static size_t ApproximateBytesUsed(const SkPicture* pict);
22 };
23 
24 #endif
25