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

Issue 13884018: cc: Add base64 encoding to picture (Closed)

Created:
7 years, 8 months ago by vmpstr
Modified:
7 years, 8 months ago
Reviewers:
pdr., nduca
CC:
chromium-reviews, cc-bugs_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

cc: Add base64 encoding to picture This adds ability to serialize cc::Picture to base64 string and to initialize the picture back from that serialization. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195361

Patch Set 1 #

Total comments: 3

Patch Set 2 : tfarina's review #

Patch Set 3 : added unittest #

Patch Set 4 : 1.0 -> 1.0f #

Total comments: 1

Patch Set 5 : added layer/opaque rect serialization #

Patch Set 6 : added invalid picture test #

Patch Set 7 : added check for picture validity #

Total comments: 1

Patch Set 8 : added picture version #

Patch Set 9 : rebase + unittest fix #

Patch Set 10 : fixed unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -1 line) Patch
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/picture.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M cc/resources/picture.cc View 1 2 3 4 5 6 7 8 9 4 chunks +85 lines, -1 line 0 comments Download
A cc/resources/picture_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +124 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vmpstr
7 years, 8 months ago (2013-04-12 20:40:29 UTC) #1
tfarina
https://codereview.chromium.org/13884018/diff/1/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/13884018/diff/1/cc/resources/picture.cc#newcode9 cc/resources/picture.cc:9: #include "cc/resources/picture.h" nit: this should be the first include. ...
7 years, 8 months ago (2013-04-13 00:49:01 UTC) #2
vmpstr
> https://codereview.chromium.org/13884018/diff/1/cc/resources/picture.cc#newcode9 > cc/resources/picture.cc:9: #include "cc/resources/picture.h" > nit: this should be the first include. Done. ...
7 years, 8 months ago (2013-04-16 17:08:39 UTC) #3
nduca
Lets do the plumbing to put this into a TRACE_EVENT_INSTANT('cc-debug', ...) conditional on --trace-full-frames. An ...
7 years, 8 months ago (2013-04-16 22:06:36 UTC) #4
nduca
Also, unit test for the picture bits?
7 years, 8 months ago (2013-04-16 22:07:31 UTC) #5
vmpstr
I added a unittest. The approach I took is to rasterize both the original picture ...
7 years, 8 months ago (2013-04-18 19:23:17 UTC) #6
nduca
https://codereview.chromium.org/13884018/diff/12005/cc/resources/picture.h File cc/resources/picture.h (right): https://codereview.chromium.org/13884018/diff/12005/cc/resources/picture.h#newcode64 cc/resources/picture.h:64: void SetPictureFromBase64String(const std::string& encoded); Does this include set layer_rect ...
7 years, 8 months ago (2013-04-18 19:43:48 UTC) #7
vmpstr
I added serialization for layer_rect and opaque_rect, since I think we should just serialize everything ...
7 years, 8 months ago (2013-04-18 20:22:51 UTC) #8
nduca
Can we file a bug against skia then and get that fixed? Its important to ...
7 years, 8 months ago (2013-04-18 20:40:20 UTC) #9
vmpstr
On 2013/04/18 20:40:20, nduca wrote: > Can we file a bug against skia then and ...
7 years, 8 months ago (2013-04-18 21:07:05 UTC) #10
vmpstr
Turns out I was just using a wrong API. My bad. I've added a check ...
7 years, 8 months ago (2013-04-18 21:21:27 UTC) #11
nduca
lgtm with nits https://codereview.chromium.org/13884018/diff/24001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/13884018/diff/24001/cc/resources/picture.cc#newcode60 cc/resources/picture.cc:60: std::string decoded; put a cc picture ...
7 years, 8 months ago (2013-04-18 21:33:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/13884018/26001
7 years, 8 months ago (2013-04-19 17:01:29 UTC) #13
commit-bot: I haz the power
Failed to apply patch for cc/cc_tests.gyp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-19 17:01:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/13884018/28001
7 years, 8 months ago (2013-04-19 17:15:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/13884018/22002
7 years, 8 months ago (2013-04-19 20:54:02 UTC) #16
commit-bot: I haz the power
7 years, 8 months ago (2013-04-20 01:15:00 UTC) #17
Message was sent while issue was closed.
Change committed as 195361

Powered by Google App Engine
This is Rietveld 408576698