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

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

Issue 490253003: Implement SkPicture::bytesUsed() for SkRecord backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Unit test prevents bloat Created 6 years, 1 month 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
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
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 SkTDArray<PixelRefAndRect> fArray; 71 SkTDArray<PixelRefAndRect> fArray;
72 72
73 typedef SkPixelRefContainer INHERITED; 73 typedef SkPixelRefContainer INHERITED;
74 }; 74 };
75 75
76 /** 76 /**
77 * Fill the provided pixel ref container with the picture's pixel ref 77 * Fill the provided pixel ref container with the picture's pixel ref
78 * and rect information. 78 * and rect information.
79 */ 79 */
80 static void GatherPixelRefsAndRects(SkPicture* pict, SkPixelRefContainer* pr Cont); 80 static void GatherPixelRefsAndRects(SkPicture* pict, SkPixelRefContainer* pr Cont);
81
82 /** May return zero if the SkPicture implementation doesn't support counting . */
83 static size_t approximateBytesUsed(const SkPicture* pict);
reed1 2014/11/17 21:32:26 nit: Skia Static Methods Are Capitalized. "Used"?
tomhudson 2014/11/17 22:12:15 Done.
81 }; 84 };
82 85
83 #endif 86 #endif
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkBBoxHierarchy.h » ('j') | src/core/SkTileGrid.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698