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

Issue 1106113002: SkRWBuffer for thread-safe 'stream' sharing (Closed)

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

Description

SkRWBuffer for thread-safe 'stream' sharing WIP - Can accumulate (write) data in one thread, and share snapshots of it in other threads ... e.g. network accumulates image data, and periodically we want to decode/draw it - If this sort of thing sticks, should we promote SkData to have the same generality as SkRBuffer? BUG=skia: TBR= Committed: https://skia.googlesource.com/skia/+/5b6db07fb5d3b67476db6df126eb8290d49e564d

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : starter set of unittests #

Patch Set 4 : complete alphabet test #

Patch Set 5 : impl stream (untested so far) #

Patch Set 6 : add tests for stream #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : add chunkalloc append(size) method that returns a contiguous ptr #

Patch Set 9 : try to fix warnings #

Total comments: 18

Patch Set 10 : make header private (for now at least) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+532 lines, -0 lines) Patch
M gyp/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A src/core/SkRWBuffer.h View 1 2 3 4 5 6 7 8 9 1 chunk +97 lines, -0 lines 0 comments Download
A src/core/SkRWBuffer.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +353 lines, -0 lines 0 comments Download
M tests/DataRefTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
reed2
5 years, 8 months ago (2015-04-25 18:14:23 UTC) #2
reed2
5 years, 8 months ago (2015-04-25 18:31:16 UTC) #4
mtklein
https://codereview.chromium.org/1106113002/diff/20001/src/core/SkRWBuffer.cpp File src/core/SkRWBuffer.cpp (right): https://codereview.chromium.org/1106113002/diff/20001/src/core/SkRWBuffer.cpp#newcode53 src/core/SkRWBuffer.cpp:53: mutable int32_t fRefCnt; How come we're not using SkRefCnt ...
5 years, 8 months ago (2015-04-25 18:49:53 UTC) #5
reed2
On 2015/04/25 18:49:53, mtklein wrote: > https://codereview.chromium.org/1106113002/diff/20001/src/core/SkRWBuffer.cpp > File src/core/SkRWBuffer.cpp (right): > > https://codereview.chromium.org/1106113002/diff/20001/src/core/SkRWBuffer.cpp#newcode53 > ...
5 years, 8 months ago (2015-04-26 02:15:15 UTC) #6
bungeman-skia
Some initial observations. https://codereview.chromium.org/1106113002/diff/100001/include/core/SkRWBuffer.h File include/core/SkRWBuffer.h (right): https://codereview.chromium.org/1106113002/diff/100001/include/core/SkRWBuffer.h#newcode82 include/core/SkRWBuffer.h:82: SkData* newDataSnapshot() const; I would be ...
5 years, 8 months ago (2015-04-27 14:52:42 UTC) #7
reed2
https://codereview.chromium.org/1106113002/diff/100001/include/core/SkRWBuffer.h File include/core/SkRWBuffer.h (right): https://codereview.chromium.org/1106113002/diff/100001/include/core/SkRWBuffer.h#newcode82 include/core/SkRWBuffer.h:82: SkData* newDataSnapshot() const; On 2015/04/27 14:52:42, bungeman1 wrote: > ...
5 years, 8 months ago (2015-04-28 02:25:00 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106113002/140001
5 years, 8 months ago (2015-04-28 03:43:22 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/718)
5 years, 8 months ago (2015-04-28 03:46:49 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106113002/160001
5 years, 8 months ago (2015-04-28 03:51:06 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-28 03:56:49 UTC) #16
reed1
What do you (reviewers) say to tweaking this (and moving the header into private) and ...
5 years, 7 months ago (2015-04-28 15:11:03 UTC) #17
bungeman-skia
https://codereview.chromium.org/1106113002/diff/160001/include/core/SkRWBuffer.h File include/core/SkRWBuffer.h (right): https://codereview.chromium.org/1106113002/diff/160001/include/core/SkRWBuffer.h#newcode80 include/core/SkRWBuffer.h:80: void* append(size_t length); How do we know when they're ...
5 years, 7 months ago (2015-04-28 15:32:54 UTC) #18
mtklein
sgtm
5 years, 7 months ago (2015-04-28 15:32:57 UTC) #19
reed1
https://codereview.chromium.org/1106113002/diff/160001/include/core/SkRWBuffer.h File include/core/SkRWBuffer.h (right): https://codereview.chromium.org/1106113002/diff/160001/include/core/SkRWBuffer.h#newcode80 include/core/SkRWBuffer.h:80: void* append(size_t length); On 2015/04/28 15:32:53, bungeman1 wrote: > ...
5 years, 7 months ago (2015-04-28 16:02:20 UTC) #20
reed1
btw -- I want to keep the semantics such that a spawned reader (buffer or ...
5 years, 7 months ago (2015-04-28 16:03:09 UTC) #21
scroggo
https://codereview.chromium.org/1106113002/diff/160001/src/core/SkRWBuffer.cpp File src/core/SkRWBuffer.cpp (right): https://codereview.chromium.org/1106113002/diff/160001/src/core/SkRWBuffer.cpp#newcode61 src/core/SkRWBuffer.cpp:61: static size_t LengthToCapacity(size_t length) { Could be private? https://codereview.chromium.org/1106113002/diff/160001/src/core/SkRWBuffer.cpp#newcode85 ...
5 years, 7 months ago (2015-04-28 17:27:40 UTC) #22
reed2
https://codereview.chromium.org/1106113002/diff/160001/src/core/SkRWBuffer.cpp File src/core/SkRWBuffer.cpp (right): https://codereview.chromium.org/1106113002/diff/160001/src/core/SkRWBuffer.cpp#newcode61 src/core/SkRWBuffer.cpp:61: static size_t LengthToCapacity(size_t length) { On 2015/04/28 17:27:39, scroggo ...
5 years, 7 months ago (2015-04-29 00:43:49 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106113002/180001
5 years, 7 months ago (2015-04-29 00:44:29 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-04-29 00:49:32 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106113002/180001
5 years, 7 months ago (2015-04-29 00:50:19 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 00:50:38 UTC) #30
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://skia.googlesource.com/skia/+/5b6db07fb5d3b67476db6df126eb8290d49e564d

Powered by Google App Engine
This is Rietveld 408576698