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

Issue 2397713005: DrawingBuffer clean-up: Aesthetic changes (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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DrawingBuffer clean-up: Aesthetic changes Rename several variables to reflect that they are based on ColorBuffers. Re-organize createColorBuffer to be in a single function with multiple steps, rather than several functions that call each other. Re-organize prepareTextureMailboxInternal to branch off into separate gpu and software implementations. This patch should have no functional effect. BUG=648707 Committed: https://crrev.com/8b7a69f6544da9a4b1fa4c0719e814269115acbd Cr-Commit-Position: refs/heads/master@{#424006}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Fix alpha clearing behavior #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -210 lines) Patch
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 11 chunks +38 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 11 chunks +177 lines, -164 lines 5 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (15 generated)
ccameron
This rearranges code and renames variables. In the instance of ColorBuffer allocation, I replaced the ...
4 years, 2 months ago (2016-10-07 01:09:58 UTC) #8
Ken Russell (switch to Gerrit)
Thank you for cleaning up this code. Your reorganization is excellent and makes the code ...
4 years, 2 months ago (2016-10-07 03:33:53 UTC) #11
ccameron
Thanks -- good catch! https://codereview.chromium.org/2397713005/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/2397713005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode1177 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:1177: !m_wantAlphaChannel) { On 2016/10/07 03:33:53, ...
4 years, 2 months ago (2016-10-07 08:28:23 UTC) #14
erikchen
https://codereview.chromium.org/2397713005/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/2397713005/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode319 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:319: { why the new scope? https://codereview.chromium.org/2397713005/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode1116 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:1116: std::vector<uint8_t> scanline(width ...
4 years, 2 months ago (2016-10-07 16:25:09 UTC) #17
Ken Russell (switch to Gerrit)
Thanks. Still LGTM. https://codereview.chromium.org/2397713005/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/2397713005/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode1116 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:1116: std::vector<uint8_t> scanline(width * 4); On 2016/10/07 ...
4 years, 2 months ago (2016-10-07 18:34:41 UTC) #18
ccameron
Thanks! https://codereview.chromium.org/2397713005/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/2397713005/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode319 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:319: { On 2016/10/07 16:25:09, erikchen wrote: > why ...
4 years, 2 months ago (2016-10-07 20:36:30 UTC) #19
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/2397713005/40001
4 years, 2 months ago (2016-10-07 23:12:34 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-07 23:17:59 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 23:20:53 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8b7a69f6544da9a4b1fa4c0719e814269115acbd
Cr-Commit-Position: refs/heads/master@{#424006}

Powered by Google App Engine
This is Rietveld 408576698