b0dfb546f5
BUG=skia: Review URL: https://codereview.chromium.org/869463002
25 lines
651 B
C++
25 lines
651 B
C++
/*
|
|
* Copyright 2012 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkPictureUtils_DEFINED
|
|
#define SkPictureUtils_DEFINED
|
|
|
|
#include "SkPicture.h"
|
|
|
|
class SK_API SkPictureUtils {
|
|
public:
|
|
/**
|
|
* How many bytes are allocated to hold the SkPicture.
|
|
* Includes operations, parameters, bounding data, deletion listeners;
|
|
* includes nested SkPictures, but does not include large objects that
|
|
* SkRecord holds a reference to (e.g. paths, or pixels backing bitmaps).
|
|
*/
|
|
static size_t ApproximateBytesUsed(const SkPicture* pict);
|
|
};
|
|
|
|
#endif
|