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

Issue 2605343002: The great shader refactor: Delete instances of GetShaderSource (Closed)

Created:
3 years, 11 months ago by ccameron
Modified:
3 years, 11 months ago
Reviewers:
ericrk
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The great shader refactor: Delete instances of GetShaderSource There comes a time, around the 20th time that we copy-paste the same function into a new subclass, that we should consider moving the function to the base class. For GetShaderSource, that moment has arrived. Also rename FragmentTexBlendMode to FragmentShaderBase to reflect that - it is indeed the base class of all fragment programs - even the ones that don't use custom blend modes - even the ones that don't use texturing Also also, merge fragment "head" and "body" distinction in shaders. They will all be deleted soon, and merging them makes seeing common patterns easier. TBR=ericrk BUG=667966 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/c9e49bd0436fa86076fb867417d9462b815db6c1 Cr-Commit-Position: refs/heads/master@{#441013}

Patch Set 1 #

Patch Set 2 : Rename base class #

Patch Set 3 : Remove FRAGMENT_PROGRAM macro entirely #

Patch Set 4 : Just GetShaderSource #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -360 lines) Patch
M cc/output/shader.h View 1 2 3 21 chunks +56 lines, -110 lines 0 comments Download
M cc/output/shader.cc View 1 2 3 34 chunks +36 lines, -250 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (20 generated)
ccameron
I'm going to be doing this as a TBR because: - everyone is gone - ...
3 years, 11 months ago (2016-12-30 01:41:53 UTC) #17
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/2605343002/60001
3 years, 11 months ago (2016-12-30 01:42:08 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2016-12-30 01:47:37 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:54:02 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c9e49bd0436fa86076fb867417d9462b815db6c1
Cr-Commit-Position: refs/heads/master@{#441013}

Powered by Google App Engine
This is Rietveld 408576698