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

Issue 851273003: YUV planes cache (Closed)

Created:
5 years, 11 months ago by sugoi1
Modified:
5 years, 11 months ago
CC:
reviews_skia.org, senorblanco
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

YUV planes cache - Added new classes to contain YUV planes of memory, along with the associated data. - Used these classes in load_yuv_texture() to enable YUV planes caching - Added a unit test for the new cache BUG=450021 Committed: https://skia.googlesource.com/skia/+/692135f9689d4dcb5ba91ff8f4899e268c0bfe11

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added some doc and fixed test #

Total comments: 6

Patch Set 3 : Fixed nits #

Total comments: 2

Patch Set 4 : static cast at the right spot #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -30 lines) Patch
M gyp/core.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkMaskCache.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
A src/core/SkYUVPlanesCache.h View 1 1 chunk +50 lines, -0 lines 2 comments Download
A src/core/SkYUVPlanesCache.cpp View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 chunks +45 lines, -29 lines 0 comments Download
A tests/YUVCacheTest.cpp View 1 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
sugoi1
I took at SkMaskCache as an example and came up with this. Hopefully, this is ...
5 years, 11 months ago (2015-01-16 19:04:10 UTC) #2
reed1
Seems like a great start. https://codereview.chromium.org/851273003/diff/1/src/core/SkYUVPlanesCache.h File src/core/SkYUVPlanesCache.h (right): https://codereview.chromium.org/851273003/diff/1/src/core/SkYUVPlanesCache.h#newcode18 src/core/SkYUVPlanesCache.h:18: size_t fSizeInMemory[3]; I'm guessing ...
5 years, 11 months ago (2015-01-18 19:02:18 UTC) #3
sugoi1
https://codereview.chromium.org/851273003/diff/1/src/core/SkYUVPlanesCache.h File src/core/SkYUVPlanesCache.h (right): https://codereview.chromium.org/851273003/diff/1/src/core/SkYUVPlanesCache.h#newcode18 src/core/SkYUVPlanesCache.h:18: size_t fSizeInMemory[3]; On 2015/01/18 19:02:18, reed1 wrote: > I'm ...
5 years, 11 months ago (2015-01-19 13:28:01 UTC) #4
Stephen White
https://codereview.chromium.org/851273003/diff/20001/src/core/SkYUVPlanesCache.cpp File src/core/SkYUVPlanesCache.cpp (right): https://codereview.chromium.org/851273003/diff/20001/src/core/SkYUVPlanesCache.cpp#newcode52 src/core/SkYUVPlanesCache.cpp:52: YUVValue* result = (YUVValue*)contextData; OCD nit: previous line has ...
5 years, 11 months ago (2015-01-19 15:14:37 UTC) #6
sugoi1
https://codereview.chromium.org/851273003/diff/20001/src/core/SkYUVPlanesCache.cpp File src/core/SkYUVPlanesCache.cpp (right): https://codereview.chromium.org/851273003/diff/20001/src/core/SkYUVPlanesCache.cpp#newcode52 src/core/SkYUVPlanesCache.cpp:52: YUVValue* result = (YUVValue*)contextData; On 2015/01/19 15:14:36, Stephen White ...
5 years, 11 months ago (2015-01-19 15:36:25 UTC) #7
Stephen White
https://codereview.chromium.org/851273003/diff/40001/src/core/SkYUVPlanesCache.cpp File src/core/SkYUVPlanesCache.cpp (right): https://codereview.chromium.org/851273003/diff/40001/src/core/SkYUVPlanesCache.cpp#newcode52 src/core/SkYUVPlanesCache.cpp:52: YUVValue* result = (YUVValue*)contextData; This cast is still C-style. ...
5 years, 11 months ago (2015-01-19 15:43:11 UTC) #8
sugoi1
https://codereview.chromium.org/851273003/diff/40001/src/core/SkYUVPlanesCache.cpp File src/core/SkYUVPlanesCache.cpp (right): https://codereview.chromium.org/851273003/diff/40001/src/core/SkYUVPlanesCache.cpp#newcode52 src/core/SkYUVPlanesCache.cpp:52: YUVValue* result = (YUVValue*)contextData; On 2015/01/19 15:43:11, Stephen White ...
5 years, 11 months ago (2015-01-19 15:51:58 UTC) #9
Stephen White
LGTM
5 years, 11 months ago (2015-01-19 16:19:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/851273003/60001
5 years, 11 months ago (2015-01-19 18:03:02 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/692135f9689d4dcb5ba91ff8f4899e268c0bfe11
5 years, 11 months ago (2015-01-19 18:10:32 UTC) #13
reed2
its ok this landed, but I wasn't really finished reviewing. https://codereview.chromium.org/851273003/diff/60001/src/core/SkYUVPlanesCache.h File src/core/SkYUVPlanesCache.h (right): https://codereview.chromium.org/851273003/diff/60001/src/core/SkYUVPlanesCache.h#newcode20 ...
5 years, 11 months ago (2015-01-19 19:09:09 UTC) #15
reed2
might also have been good to have robert or brian take a look at the ...
5 years, 11 months ago (2015-01-19 19:09:51 UTC) #16
sugoi1
https://codereview.chromium.org/851273003/diff/60001/src/core/SkYUVPlanesCache.h File src/core/SkYUVPlanesCache.h (right): https://codereview.chromium.org/851273003/diff/60001/src/core/SkYUVPlanesCache.h#newcode20 src/core/SkYUVPlanesCache.h:20: * contiguously, in that order, as a single block ...
5 years, 11 months ago (2015-01-19 19:28:56 UTC) #17
sugoi1
Adding bsalomon@ Sorry for adding you after the cl has landed. I just want you ...
5 years, 11 months ago (2015-01-19 19:38:26 UTC) #19
bsalomon
5 years, 11 months ago (2015-01-20 14:19:30 UTC) #20
Message was sent while issue was closed.
On 2015/01/19 19:38:26, sugoi1 wrote:
> Adding bsalomon@
> 
> Sorry for adding you after the cl has landed. I just want you to review the
code
> in SkGr.cpp. If there are any problems, I'll address them in a follow-up ASAP.

thanks, lgtm.

Powered by Google App Engine
This is Rietveld 408576698