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

Issue 773433003: Force SkMatrix type while recording too. (Closed)

Created:
6 years ago by mtklein_C
Modified:
6 years ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Force SkMatrix type while recording too. This switches to a new way of doing this, enforcing the caching with the type recorded rather than having to do it in SkRecorder. Should be more foolproof. Updated SkPath and SkBitmap's equivalents too. ImmutableBitmap was close, but using inheritance now makes the rest of the code less weird. BUG=437511 I'm not sure whether or not this will _fix_ the SkMatrix aspect of that bug. There may be other SkMatrices that we're racing on. It does cover the obvious ones, though, and removing the SkTRacy<> wrapper will allow TSAN to show us any other races. It turned out to be easier to turn missing optional matrices into I early rather than late. I figure this should be harmless. Recording and playback perf both look neutral. Committed: https://skia.googlesource.com/skia/+/af57903f330a0afd0c10244d4a66f64fdbef5d1e

Patch Set 1 #

Patch Set 2 : bitmap too #

Patch Set 3 : unweird #

Patch Set 4 : no racy #

Patch Set 5 : rebase #

Patch Set 6 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -53 lines) Patch
M include/core/SkMatrix.h View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 5 chunks +9 lines, -13 lines 0 comments Download
M src/core/SkRecorder.cpp View 5 chunks +5 lines, -12 lines 0 comments Download
M src/core/SkRecords.h View 1 5 chunks +29 lines, -19 lines 0 comments Download
M src/gpu/GrRecordReplaceDraw.cpp View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
mtklein
6 years ago (2014-12-01 18:38:28 UTC) #2
reed1
lgtm
6 years ago (2014-12-01 18:42:13 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/773433003/80001
6 years ago (2014-12-01 18:47:10 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/1239)
6 years ago (2014-12-01 18:50:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/773433003/80001
6 years ago (2014-12-01 18:52:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/773433003/100001
6 years ago (2014-12-01 18:52:39 UTC) #11
commit-bot: I haz the power
6 years ago (2014-12-01 19:03:40 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/af57903f330a0afd0c10244d4a66f64fdbef5d1e

Powered by Google App Engine
This is Rietveld 408576698