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

Issue 2820373003: WebGL: Tidy up buffer allocation logic (Closed)

Created:
3 years, 8 months ago by ccameron
Modified:
3 years, 8 months ago
CC:
chromium-reviews, krit, dshwang, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, pdr+graphicswatchlist_chromium.org, Justin Novosad, haraken, dglazkov+blink, Rik, Stephen Chennney, fmalita+watch_chromium.org, blink-reviews-paint_chromium.org, blink-reviews, piman+watch_chromium.org, blink-reviews-frames_chromium.org, ajuma+watch_chromium.org, kinuko+watch, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

WebGL: Tidy up buffer allocation logic This patch should not change any of the allocation format logic, it just makes it more clear what it's doing. Rather than compute the formats to use, compute the parameter "should we allocate an alpha channel". But, there is one bugfix where, if we fail to allocate a GLImage, we we were not re-computing the color buffer parameters. Now we do. BUG=711107 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2820373003 Cr-Commit-Position: refs/heads/master@{#465898} Committed: https://chromium.googlesource.com/chromium/src/+/2ecea20b01bdccc4f80893e5e14955bad1e9a554

Patch Set 1 #

Patch Set 2 : WebGL: tidy buffer allocation logic #

Total comments: 1

Patch Set 3 : ... and fix the build #

Total comments: 5

Patch Set 4 : Incorporate review feedback #

Patch Set 5 : No incidental bugfix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -65 lines) Patch
M gpu/command_buffer/common/gpu_memory_buffer_support.h View 1 chunk +0 lines, -5 lines 0 comments Download
M gpu/command_buffer/common/gpu_memory_buffer_support.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 1 2 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 4 5 chunks +25 lines, -40 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
ccameron
ptal -- small change, just makes things more clear https://codereview.chromium.org/2820373003/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2820373003/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode1166 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:1166: ...
3 years, 8 months ago (2017-04-19 06:09:03 UTC) #5
Zhenyao Mo
LGTM kbr: does this collide with your work on fixing RGB emulation bug? https://codereview.chromium.org/2820373003/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File ...
3 years, 8 months ago (2017-04-19 17:06:04 UTC) #7
Ken Russell (switch to Gerrit)
lgtm Yes, this will collide with the fix for http://crbug.com/699566 , but that's OK and ...
3 years, 8 months ago (2017-04-19 17:25:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2820373003/40001
3 years, 8 months ago (2017-04-19 18:06:56 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_optional_gpu_tests_rel on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/9183)
3 years, 8 months ago (2017-04-19 19:10:26 UTC) #12
ccameron
Thanks! https://codereview.chromium.org/2820373003/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2820373003/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode538 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:538: parameters.allocate_alpha_channel = true; D'oh, this was supposed to ...
3 years, 8 months ago (2017-04-19 19:45:42 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2820373003/80001
3 years, 8 months ago (2017-04-20 02:40:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2820373003/80001
3 years, 8 months ago (2017-04-20 04:21:11 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 04:26:26 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2ecea20b01bdccc4f80893e5e149...

Powered by Google App Engine
This is Rietveld 408576698