|
|
DescriptionSkRemote: some images, many TODOs
You can see from the diffs this is a step forward, but with bugs to fix:
https://gold.skia.org/search2?issue=1418483006&unt=true&query=source_type%3Dgm&master=false&include=true
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/479f54dd94a8f468fbd51763943528ec6cf3146f
Patch Set 1 #Patch Set 2 : (void) #Patch Set 3 : ugh #Patch Set 4 : tweaks #Patch Set 5 : drop drawSprite #
Total comments: 7
Patch Set 6 : hal #Messages
Total messages: 32 (15 generated)
The CQ bit was checked by mtklein@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418483006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418483006/1
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86...)
The CQ bit was checked by mtklein@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418483006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418483006/20001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mip...)
The CQ bit was checked by mtklein@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418483006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418483006/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by mtklein@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418483006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418483006/80001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
mtklein@chromium.org changed reviewers: + halcanary@google.com - mtklein@google.com
Description was changed from ========== SkRemote: some images, many TODOs BUG=skia: ========== to ========== SkRemote: some images, many TODOs You can see from the diffs this is a step forward, but with bugs to fix: https://gold.skia.org/search2?issue=1418483006&unt=true&query=source_type%3Dg... BUG=skia: ==========
https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp File src/core/SkRemote.cpp (right): https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:335: // TODO SkAutoTUnref<SkImage> image(SkImage::NewFromBitmap(bitmap)); this->onDrawImageNine(image, center, dst, paint); https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:342: // TODO SkNinePatchIter iter(image->width(), image->height(), center, dst); SkRect srcR, dstR; while (iter.next(&srcR, &dstR)) { this->onDrawImageRect(image, &srcR, dstR, paint, SkCanvas::kStrict_SrcRectConstraint); } https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:374: this->INHERITED::onClipRect(rect, op, edgeStyle); // Please add comment explaining why we need this.
Things that make me sad: * Too many image draw calls! * The default implementations don't do what you want! https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp File src/core/SkRemote.cpp (right): https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:234: // TODO Isn't this->INHERITED::onDrawPicture(pic, matrix, paint); better than dropping this call (for now)? Or simpler: #include "SkCanvasPriv.h" SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect()); picture->playback(this);
mtklein@google.com changed reviewers: + mtklein@google.com
mtklein@google.com changed reviewers: + mtklein@google.com
https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp File src/core/SkRemote.cpp (right): https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:234: // TODO On 2015/11/03 at 15:09:56, Hal Canary wrote: > Isn't > > this->INHERITED::onDrawPicture(pic, matrix, paint); > > better than dropping this call (for now)? > > Or simpler: > > #include "SkCanvasPriv.h" > SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect()); > picture->playback(this); Done. https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:335: // TODO On 2015/11/03 at 15:04:01, Hal Canary wrote: > SkAutoTUnref<SkImage> image(SkImage::NewFromBitmap(bitmap)); > this->onDrawImageNine(image, center, dst, paint); Done. https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:342: // TODO On 2015/11/03 at 15:04:01, Hal Canary wrote: > SkNinePatchIter iter(image->width(), image->height(), center, dst); > SkRect srcR, dstR; > while (iter.next(&srcR, &dstR)) { > this->onDrawImageRect(image, &srcR, dstR, paint, > SkCanvas::kStrict_SrcRectConstraint); > } Done. https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:374: this->INHERITED::onClipRect(rect, op, edgeStyle); On 2015/11/03 at 15:04:01, Hal Canary wrote: > // Please add comment explaining why we need this. // Done.
https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp File src/core/SkRemote.cpp (right): https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:335: // TODO On 2015/11/03 at 15:04:01, Hal Canary wrote: > SkAutoTUnref<SkImage> image(SkImage::NewFromBitmap(bitmap)); > this->onDrawImageNine(image, center, dst, paint); Done. https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:342: // TODO On 2015/11/03 at 15:04:01, Hal Canary wrote: > SkNinePatchIter iter(image->width(), image->height(), center, dst); > SkRect srcR, dstR; > while (iter.next(&srcR, &dstR)) { > this->onDrawImageRect(image, &srcR, dstR, paint, > SkCanvas::kStrict_SrcRectConstraint); > } Done. https://codereview.chromium.org/1418483006/diff/80001/src/core/SkRemote.cpp#n... src/core/SkRemote.cpp:374: this->INHERITED::onClipRect(rect, op, edgeStyle); On 2015/11/03 at 15:04:01, Hal Canary wrote: > // Please add comment explaining why we need this. // Done.
The CQ bit was checked by mtklein@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418483006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418483006/100001
lgtm
The CQ bit was unchecked by mtklein@google.com
The CQ bit was checked by mtklein@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418483006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418483006/100001
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/479f54dd94a8f468fbd51763943528ec6cf3146f |