commit | 0850dcdb2edcff95b2083da2510c65c3aaa510c8 | [log] [tgz] |
---|---|---|
author | Stephen White <senorblanco@chromium.org> | Tue Aug 13 15:28:47 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Aug 14 19:03:37 2019 +0000 |
tree | 8a97ea9ae7e1309315f9fbed1b9b1342807d8e60 | |
parent | b64b04f9a9f88f857797f59fad474bac05fed201 [diff] [blame] |
First implementation of GrDawnTexture. Change-Id: I9c636c939dffbb0b395f3e9ed3d9a55784a6d390 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/233981 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
diff --git a/src/gpu/dawn/GrDawnUtil.cpp b/src/gpu/dawn/GrDawnUtil.cpp index ad790ba..7d9df0d 100644 --- a/src/gpu/dawn/GrDawnUtil.cpp +++ b/src/gpu/dawn/GrDawnUtil.cpp
@@ -47,6 +47,11 @@ } } +size_t GrDawnRoundRowBytes(size_t rowBytes) { + // Dawn requires that rowBytes be a multiple of 256. (This is actually imposed by D3D12.) + return (rowBytes + 0xFF) & ~0xFF; +} + #if GR_TEST_UTILS const char* GrDawnFormatToStr(dawn::TextureFormat format) { switch (format) {