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

Issue 1015373003: Add texture compression interface and ETC1 encoder. (Closed)

Created:
5 years, 9 months ago by christiank
Modified:
5 years, 8 months ago
Reviewers:
reveman, radu.velea
CC:
auygun, cc-bugs_chromium.org, chromium-reviews, peterp
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add texture compression interface and ETC1 encoder. This CL introduces a CC texture compression API and adds an ETC1 encoder that will be used for compressing tile textures. BUG=434699 Committed: https://crrev.com/7957c6df0e1f3bd7d023d8a60e0d62d457065e48 Cr-Commit-Position: refs/heads/master@{#321788}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove compressor pointer check #

Total comments: 1

Patch Set 3 : Remove unnecessary include #

Patch Set 4 : Move files from cc/resources/texture_compress to cc/resources/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+715 lines, -0 lines) Patch
M cc/BUILD.gn View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A cc/resources/texture_compressor.h View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A cc/resources/texture_compressor.cc View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A cc/resources/texture_compressor_etc1.h View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A cc/resources/texture_compressor_etc1.cc View 1 2 3 1 chunk +503 lines, -0 lines 1 comment Download
A cc/resources/texture_compressor_perftest.cc View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
christiank
Hi David, This CL continues the work auygun started in issue: 820713006. This CL contains ...
5 years, 9 months ago (2015-03-19 10:27:00 UTC) #2
reveman
Looks great! Do we need the texture_compress/ directory? If cc/resources/ is getting too large, then ...
5 years, 9 months ago (2015-03-20 15:15:55 UTC) #3
christiank
On 2015/03/20 15:15:55, reveman wrote: > Looks great! Do we need the texture_compress/ directory? If ...
5 years, 9 months ago (2015-03-23 07:36:28 UTC) #4
christiank
https://codereview.chromium.org/1015373003/diff/1/cc/resources/texture_compress/texture_compressor_perftest.cc File cc/resources/texture_compress/texture_compressor_perftest.cc (right): https://codereview.chromium.org/1015373003/diff/1/cc/resources/texture_compress/texture_compressor_perftest.cc#newcode65 cc/resources/texture_compress/texture_compressor_perftest.cc:65: if (!compressor_) On 2015/03/20 15:15:55, reveman wrote: > nit: ...
5 years, 9 months ago (2015-03-23 07:36:56 UTC) #5
reveman
Let's move the files to cc/resources/ for now and we can figure out later if ...
5 years, 9 months ago (2015-03-23 14:27:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1015373003/60001
5 years, 9 months ago (2015-03-23 14:55:08 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-23 16:20:01 UTC) #10
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/7957c6df0e1f3bd7d023d8a60e0d62d457065e48 Cr-Commit-Position: refs/heads/master@{#321788}
5 years, 9 months ago (2015-03-23 16:20:22 UTC) #11
radu.velea
5 years, 8 months ago (2015-04-10 13:37:53 UTC) #13
Message was sent while issue was closed.
Shouldn't there be a break here:
cc/resources/texture_compressor_etc1.cc:414? If first 2 channels have a big diff
and the
last doesn't the flag will be false but colors 555.

https://codereview.chromium.org/1015373003/diff/60001/cc/resources/texture_co...
File cc/resources/texture_compressor_etc1.cc (right):

https://codereview.chromium.org/1015373003/diff/60001/cc/resources/texture_co...
cc/resources/texture_compressor_etc1.cc:414: sub_block_avg[j] =
MakeColor444(avg_color_1);
Shouldn't there be a break here? If first 2 channels have a big diff and the
last doesn't the flag will be false but colors 555.

Powered by Google App Engine
This is Rietveld 408576698