Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: include/utils/SkPictureUtils.h

Issue 1130333002: Revert of Sketch splitting SkPicture into an interface and SkBigPicture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkPictureRecorder.h ('k') | src/core/SkBigPicture.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "SkPicture.h" 11 #include "SkPicture.h"
12 12
13 // TODO: remove this file?
14
15 class SK_API SkPictureUtils { 13 class SK_API SkPictureUtils {
16 public: 14 public:
17 /** 15 /**
18 * How many bytes are allocated to hold the SkPicture. 16 * How many bytes are allocated to hold the SkPicture.
19 * Includes operations, parameters, bounding data, deletion listeners; 17 * Includes operations, parameters, bounding data, deletion listeners;
20 * includes nested SkPictures, but does not include large objects that 18 * includes nested SkPictures, but does not include large objects that
21 * SkRecord holds a reference to (e.g. paths, or pixels backing bitmaps). 19 * SkRecord holds a reference to (e.g. paths, or pixels backing bitmaps).
22 */ 20 */
23 static size_t ApproximateBytesUsed(const SkPicture* pict) { 21 static size_t ApproximateBytesUsed(const SkPicture* pict);
24 return pict->approximateBytesUsed();
25 }
26 }; 22 };
27 23
28 #endif 24 #endif
OLDNEW
« no previous file with comments | « include/core/SkPictureRecorder.h ('k') | src/core/SkBigPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698