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

Unified Diff: skia/ext/skia_utils_base.h

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: addressed comments Created 3 years, 10 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
Index: skia/ext/skia_utils_base.h
diff --git a/skia/ext/skia_utils_base.h b/skia/ext/skia_utils_base.h
index 6af5cf7451d1f5c68ab271ce07327de727c118da..654f55c0f214e34174f5b5982852afbab0cb4539 100644
--- a/skia/ext/skia_utils_base.h
+++ b/skia/ext/skia_utils_base.h
@@ -6,8 +6,9 @@
#define SKIA_EXT_SKIA_UTILS_BASE_H_
#include "base/pickle.h"
-#include "third_party/skia/include/ports/SkFontConfigInterface.h"
+#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkSurfaceProps.h"
+#include "third_party/skia/include/ports/SkFontConfigInterface.h"
namespace skia {
@@ -38,6 +39,9 @@ SK_API bool WriteSkFontStyle(base::Pickle* pickle, SkFontStyle style);
// Determine the default pixel geometry (for LCD) by querying the font host
SK_API SkPixelGeometry ComputeDefaultPixelGeometry();
+// Uses safe math to compute and return the size of |image|.
+SK_API size_t SafeSizeOfImage(const SkImage* image);
+
} // namespace skia
#endif // SKIA_EXT_SKIA_UTILS_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698