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

Issue 470233003: Restrict ETC1 power-of-two rounding to old IMG drivers. (Closed)

Created:
6 years, 4 months ago by aelias_OOO_until_Jul13
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, David Trainor- moved to gerrit, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Restrict ETC1 power-of-two rounding to old IMG drivers. The ETC1 spec says that any multiple of 4 is allowed for ETC1 size, but certain old IMG devices (notably the Galaxy Nexus) crash unless the textures are specifically power-of-two. To avoid wasting RAM on all devices due to this device-specific problem, this patch plumbs a driver workaround flag to the thumbnail store (the only user of ETC1 at present). We considered adding a workaround to the service side like all of the others, but because texture size impacts memory budgeting and coordinates, this one seems like it needs to be in the client code. NOTRY=true BUG=150500 Committed: https://crrev.com/d880a3deca8ab1c6c75ef915faa22ab7d40f55ff Cr-Commit-Position: refs/heads/master@{#291814}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 8

Patch Set 3 : dtrainor review #

Patch Set 4 : sievers code review #

Patch Set 5 : Pass capabilities by value #

Total comments: 1

Patch Set 6 : Use MessageLoopProxy #

Patch Set 7 : Fix Clang build #

Patch Set 8 : Fix content_unittests #

Patch Set 9 : More Clang fix #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -16 lines) Patch
M chrome/browser/android/thumbnail/thumbnail_store.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_store.cc View 1 2 5 chunks +22 lines, -11 lines 0 comments Download
M content/browser/android/system_ui_resource_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/ui_resource_provider_impl.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/android/ui_resource_provider_impl.cc View 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 4 chunks +29 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/android/ui_resource_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/capabilities.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/capabilities.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/config/gpu_driver_bug_list_json.cc View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_workaround_type.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
aelias_OOO_until_Jul13
PTAL. sievers@ for general review zmo@ for gpu/ tedchoc@ for content/public/browser/android
6 years, 4 months ago (2014-08-21 22:11:21 UTC) #1
David Trainor- moved to gerrit
https://codereview.chromium.org/470233003/diff/20001/chrome/browser/android/thumbnail/thumbnail_store.cc File chrome/browser/android/thumbnail/thumbnail_store.cc (right): https://codereview.chromium.org/470233003/diff/20001/chrome/browser/android/thumbnail/thumbnail_store.cc#newcode51 chrome/browser/android/thumbnail/thumbnail_store.cc:51: size_t RoundUpMod4(size_t x) { (x + 3) & ~3 ...
6 years, 4 months ago (2014-08-21 22:15:01 UTC) #2
aelias_OOO_until_Jul13
Adding tsepez@ for OWNERS review of content/common/gpu/gpu_messages.h https://codereview.chromium.org/470233003/diff/20001/chrome/browser/android/thumbnail/thumbnail_store.cc File chrome/browser/android/thumbnail/thumbnail_store.cc (right): https://codereview.chromium.org/470233003/diff/20001/chrome/browser/android/thumbnail/thumbnail_store.cc#newcode51 chrome/browser/android/thumbnail/thumbnail_store.cc:51: size_t RoundUpMod4(size_t ...
6 years, 4 months ago (2014-08-21 22:56:12 UTC) #3
Tom Sepez
Messages LGTM.
6 years, 4 months ago (2014-08-21 23:00:56 UTC) #4
no sievers
https://codereview.chromium.org/470233003/diff/20001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/470233003/diff/20001/content/browser/renderer_host/compositor_impl_android.cc#newcode546 content/browser/renderer_host/compositor_impl_android.cc:546: context_provider_ = ContextProviderCommandBuffer::Create( Is there a way we can ...
6 years, 4 months ago (2014-08-21 23:02:50 UTC) #5
Ted C
content/public/browser/android - LGTM
6 years, 4 months ago (2014-08-22 17:51:02 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/470233003/diff/20001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/470233003/diff/20001/content/browser/renderer_host/compositor_impl_android.cc#newcode546 content/browser/renderer_host/compositor_impl_android.cc:546: context_provider_ = ContextProviderCommandBuffer::Create( On 2014/08/21 23:02:50, sievers wrote: > ...
6 years, 4 months ago (2014-08-23 01:28:50 UTC) #7
no sievers
lgtm https://codereview.chromium.org/470233003/diff/80001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/470233003/diff/80001/content/browser/renderer_host/compositor_impl_android.cc#newcode65 content/browser/renderer_host/compositor_impl_android.cc:65: main_thread_ = base::MessageLoop::current(); use MessageLoopProxy instead of MessagLoop, ...
6 years, 4 months ago (2014-08-25 17:24:50 UTC) #8
aelias_OOO_until_Jul13
Done. Now just need OWNERS review from zmo@
6 years, 4 months ago (2014-08-25 19:10:58 UTC) #9
Zhenyao Mo
LGTM
6 years, 4 months ago (2014-08-25 20:14:26 UTC) #10
aelias_OOO_until_Jul13
The CQ bit was checked by aelias@chromium.org
6 years, 4 months ago (2014-08-25 23:33:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/470233003/160001
6 years, 4 months ago (2014-08-25 23:35:06 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 00:09:03 UTC) #13
commit-bot: I haz the power
Failed to commit the patch.
6 years, 4 months ago (2014-08-26 00:09:04 UTC) #14
aelias_OOO_until_Jul13
The CQ bit was checked by aelias@chromium.org
6 years, 4 months ago (2014-08-26 00:41:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/470233003/180001
6 years, 4 months ago (2014-08-26 00:43:40 UTC) #16
commit-bot: I haz the power
Committed patchset #10 (180001) as 791d12057856b62b1d6a17ead881fdc94775ee23
6 years, 4 months ago (2014-08-26 00:46:32 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:39:29 UTC) #18
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/d880a3deca8ab1c6c75ef915faa22ab7d40f55ff
Cr-Commit-Position: refs/heads/master@{#291814}

Powered by Google App Engine
This is Rietveld 408576698