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

Side by Side Diff: src/utils/SkPictureUtils.cpp

Issue 1112523006: Sketch splitting SkPicture into an interface and SkBigPicture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: note 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 | « src/gpu/SkGpuDevice.cpp ('k') | tests/GpuLayerCacheTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 #include "SkBBoxHierarchy.h"
9 #include "SkCanvas.h"
10 #include "SkData.h"
11 #include "SkPictureUtils.h"
12 #include "SkRecord.h"
13 #include "SkShader.h"
14
15 size_t SkPictureUtils::ApproximateBytesUsed(const SkPicture* pict) {
16 size_t byteCount = sizeof(*pict);
17
18 byteCount += pict->fRecord->bytesUsed();
19 if (pict->fBBH.get()) {
20 byteCount += pict->fBBH->bytesUsed();
21 }
22 byteCount += pict->fApproxBytesUsedBySubPictures;
23
24 return byteCount;
25 }
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | tests/GpuLayerCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698