2012-11-29 21:00:39 +00:00
|
|
|
/*
|
|
|
|
* 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"
|
|
|
|
|
2012-12-05 06:15:42 +00:00
|
|
|
class SK_API SkPictureUtils {
|
2012-11-29 21:00:39 +00:00
|
|
|
public:
|
2014-11-19 18:41:14 +00:00
|
|
|
/**
|
|
|
|
* 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);
|
2012-11-29 21:00:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|