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

Issue 2399733002: DrawingBuffer cleanup: Part 1 of many (Closed)

Created:
4 years, 2 months ago by ccameron
Modified:
4 years, 2 months ago
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, Justin Novosad, Rik, f(malita), blink-reviews, piman+watch_chromium.org, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis, erikchen
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DrawingBuffer cleanup: Part 1 of many DrawingBuffer is actually a buffer queue that recycles buffers. This buffer queue shrinks the recycle queue when it is asked to pull an element from the recycle queue. It makes more sense to do this when the elements are put in the recycle queue. The buffer queue also has a function to resize a recycled buffer, instead of just deleting it and creating a new one (perhaps under the idea the creating and destroying GL texture names is expensive). Remove this functionality because it just complicates things. While we're in the neighborhood, inline the resize functions for the multisample and depth and stencil functions (there's no point to having a short helper function that is called in only one place, it gives a feeling of more generality than actually exists). BUG=648707 Committed: https://crrev.com/0ba2258a4d613f70ab966f52249209d6156136cd Cr-Commit-Position: refs/heads/master@{#423631}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix unittests #

Total comments: 2

Patch Set 3 : Fix size update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -128 lines) Patch
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 3 chunks +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 8 chunks +68 lines, -117 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
ccameron
I gave up on trying to make big changes to DrawingBuffer, and instead I'm going ...
4 years, 2 months ago (2016-10-06 00:12:23 UTC) #7
ccameron
Switching reviewer to kbr@
4 years, 2 months ago (2016-10-06 00:14:07 UTC) #9
Ken Russell (switch to Gerrit)
Thanks for working on cleaning this up. This looks good overall. It should have the ...
4 years, 2 months ago (2016-10-06 03:47:52 UTC) #12
ccameron
Yes, there are some unit tests. I'd missed them earlier -- I had to update ...
4 years, 2 months ago (2016-10-06 08:34:25 UTC) #17
erikchen
https://codereview.chromium.org/2399733002/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/2399733002/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode936 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:936: m_size = adjustedSize; if adjustedSize is empty, then recycled ...
4 years, 2 months ago (2016-10-06 17:08:25 UTC) #19
ccameron
Thanks -- updated. https://codereview.chromium.org/2399733002/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/2399733002/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode936 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:936: m_size = adjustedSize; On 2016/10/06 17:08:25, ...
4 years, 2 months ago (2016-10-06 17:48:01 UTC) #21
erikchen
lgtm
4 years, 2 months ago (2016-10-06 17:51:22 UTC) #23
Ken Russell (switch to Gerrit)
Good catch Erik. LGTM too.
4 years, 2 months ago (2016-10-06 18:02:47 UTC) #24
ccameron
Thanks!
4 years, 2 months ago (2016-10-06 19:28:29 UTC) #27
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/2399733002/40001
4 years, 2 months ago (2016-10-06 19:29:20 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-06 19:37:18 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 19:39:26 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0ba2258a4d613f70ab966f52249209d6156136cd
Cr-Commit-Position: refs/heads/master@{#423631}

Powered by Google App Engine
This is Rietveld 408576698