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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | tests/GpuLayerCacheTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkPictureUtils.cpp
diff --git a/src/utils/SkPictureUtils.cpp b/src/utils/SkPictureUtils.cpp
deleted file mode 100644
index a8a251c92753c7d9f599475b71ba99dfc896a8c7..0000000000000000000000000000000000000000
--- a/src/utils/SkPictureUtils.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "SkBBoxHierarchy.h"
-#include "SkCanvas.h"
-#include "SkData.h"
-#include "SkPictureUtils.h"
-#include "SkRecord.h"
-#include "SkShader.h"
-
-size_t SkPictureUtils::ApproximateBytesUsed(const SkPicture* pict) {
- size_t byteCount = sizeof(*pict);
-
- byteCount += pict->fRecord->bytesUsed();
- if (pict->fBBH.get()) {
- byteCount += pict->fBBH->bytesUsed();
- }
- byteCount += pict->fApproxBytesUsedBySubPictures;
-
- return byteCount;
-}
« 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