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

Issue 41903003: cc: Fix incomplete changes to add ETC1 support (Closed)

Created:
7 years, 1 month ago by powei
Modified:
7 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org, clholgat, David Trainor- moved to gerrit
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

cc: Fix incomplete changes to add ETC1 support ETC1 resources was recently added (https://codereview.chromium.org/27973002), but the change did not cover the LayerTreeHostImpl path, which cause crashes when one tries to use ETC1 UIResourceBitmap. This update adds in the missing changes. BUG=314749 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233874

Patch Set 1 #

Patch Set 2 : added test and pixel ref class for etc1 #

Total comments: 2

Patch Set 3 : Use SkMallocPixelRef #

Patch Set 4 : Private implementation of SkPixelRef in UIResourceBitmap for ETC1 #

Patch Set 5 : added interface methods for compositor_impl_android #

Patch Set 6 : rebased #

Patch Set 7 : rebased and moved pixel ref class to public cc #

Total comments: 5

Patch Set 8 : addressed comments #

Patch Set 9 : fixed compilation issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -19 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A cc/resources/etc1_pixel_ref.h View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A cc/resources/etc1_pixel_ref.cc View 1 2 3 4 5 6 7 8 1 chunk +29 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/ui_resource_bitmap.h View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M cc/resources/ui_resource_bitmap.cc View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 0 comments Download
M cc/scheduler/texture_uploader.cc View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
powei
Missed one necessary change in last patch. PTAL. Thanks.
7 years, 1 month ago (2013-10-25 18:28:49 UTC) #1
aelias_OOO_until_Jul13
OK, could you add a LayerTreeHostImpl test case for this?
7 years, 1 month ago (2013-10-25 22:56:49 UTC) #2
powei
Added a test and a pixel-ref class. PTAL. Thanks.
7 years, 1 month ago (2013-10-29 18:10:07 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/41903003/diff/210001/cc/resources/etc1_pixel_ref.h File cc/resources/etc1_pixel_ref.h (right): https://codereview.chromium.org/41903003/diff/210001/cc/resources/etc1_pixel_ref.h#newcode15 cc/resources/etc1_pixel_ref.h:15: class ETC1PixelRef : public SkPixelRef { I think we ...
7 years, 1 month ago (2013-10-29 18:29:37 UTC) #4
aelias_OOO_until_Jul13
As discussed offline, SkMallocPixelRef doesn't have SK_API so we can't use it, and on second ...
7 years, 1 month ago (2013-10-31 02:10:55 UTC) #5
powei
On 2013/10/31 02:10:55, aelias wrote: > As discussed offline, SkMallocPixelRef doesn't have SK_API so we ...
7 years, 1 month ago (2013-10-31 02:27:21 UTC) #6
powei
PTAL. https://codereview.chromium.org/41903003/diff/210001/cc/resources/etc1_pixel_ref.h File cc/resources/etc1_pixel_ref.h (right): https://codereview.chromium.org/41903003/diff/210001/cc/resources/etc1_pixel_ref.h#newcode15 cc/resources/etc1_pixel_ref.h:15: class ETC1PixelRef : public SkPixelRef { On 2013/10/29 ...
7 years, 1 month ago (2013-10-31 21:47:26 UTC) #7
aelias_OOO_until_Jul13
lgtm!
7 years, 1 month ago (2013-10-31 21:59:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/41903003/540001
7 years, 1 month ago (2013-11-04 18:09:53 UTC) #9
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=34258
7 years, 1 month ago (2013-11-04 18:43:57 UTC) #10
powei
+yfriedman@ for compositor.h OWNER PTAL, Yaron. Thank you.
7 years, 1 month ago (2013-11-04 18:47:57 UTC) #11
Yaron
lgtm This needs a tracking bug and a BUG= line in the cl description.
7 years, 1 month ago (2013-11-04 18:51:25 UTC) #12
powei
On 2013/11/04 18:51:25, Yaron wrote: > lgtm > > This needs a tracking bug and ...
7 years, 1 month ago (2013-11-04 19:05:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/41903003/540001
7 years, 1 month ago (2013-11-04 19:12:28 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=218740
7 years, 1 month ago (2013-11-04 21:50:32 UTC) #15
powei
PTAL. Thanks. After offline discussion, we decided to expose the pixel ref class. And sorry ...
7 years, 1 month ago (2013-11-07 19:05:08 UTC) #16
aelias_OOO_until_Jul13
https://codereview.chromium.org/41903003/diff/1170001/cc/resources/etc1_pixel_ref.h File cc/resources/etc1_pixel_ref.h (right): https://codereview.chromium.org/41903003/diff/1170001/cc/resources/etc1_pixel_ref.h#newcode18 cc/resources/etc1_pixel_ref.h:18: explicit ETC1PixelRef(scoped_ptr<uint8_t[]> pixels); Could you also make this take ...
7 years, 1 month ago (2013-11-07 19:30:26 UTC) #17
powei
https://codereview.chromium.org/41903003/diff/1170001/cc/resources/etc1_pixel_ref.h File cc/resources/etc1_pixel_ref.h (right): https://codereview.chromium.org/41903003/diff/1170001/cc/resources/etc1_pixel_ref.h#newcode18 cc/resources/etc1_pixel_ref.h:18: explicit ETC1PixelRef(scoped_ptr<uint8_t[]> pixels); On 2013/11/07 19:30:27, aelias wrote: > ...
7 years, 1 month ago (2013-11-07 19:45:31 UTC) #18
aelias_OOO_until_Jul13
OK, the size thing doesn't really matter, let's get this landed as is. lgtm
7 years, 1 month ago (2013-11-07 22:28:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/41903003/1270001
7 years, 1 month ago (2013-11-08 00:39:48 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-08 01:31:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/41903003/1630001
7 years, 1 month ago (2013-11-08 09:40:09 UTC) #22
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 12:04:18 UTC) #23
Message was sent while issue was closed.
Change committed as 233874

Powered by Google App Engine
This is Rietveld 408576698