diff options
author | Mike Reed <reed@google.com> | 2018-02-09 13:26:46 -0500 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2018-02-09 20:38:32 +0000 |
commit | 7fcfb621998648ba018e3b89e2cab3135bd46a1f (patch) | |
tree | ce43ae14602539ef7b541e91cc1372c1ee4b4e0e /src/image | |
parent | 47cf048abecb5064b9e851ea01f75b23797c1611 (diff) |
move a bunch of helpers from SkImageInfo.h into priv
Bug: skia:
Change-Id: I8c91cfdb89e4f22448d1201d391556fe43d86dca
Reviewed-on: https://skia-review.googlesource.com/105289
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/image')
-rw-r--r-- | src/image/SkSurface_Raster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp index c430ad90b0..47d5542ac6 100644 --- a/src/image/SkSurface_Raster.cpp +++ b/src/image/SkSurface_Raster.cpp @@ -80,7 +80,7 @@ bool SkSurfaceValidateRasterInfo(const SkImageInfo& info, size_t rowBytes) { return true; } - int shift = SkColorTypeShiftPerPixel(info.colorType()); + int shift = info.shiftPerPixel(); uint64_t minRB = (uint64_t)info.width() << shift; if (minRB > rowBytes) { |