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

Issue 459033002: Change GR_COMPRESS_ALPHA_MASK from compile-time flag to run-time flag (Closed)

Created:
6 years, 4 months ago by krajcevski
Modified:
6 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Change GR_COMPRESS_ALPHA_MASK from compile-time flag to run-time. We do this by introducing an Options struct to be passed to a GrContext on creation. Committed: https://skia.googlesource.com/skia/+/9c6d4d744a9e0375d0e7d7a7b19558f5259fc3c3

Patch Set 1 #

Patch Set 2 : Pass options struct to GrContext #

Total comments: 4

Patch Set 3 : Move things around a bit #

Total comments: 8

Patch Set 4 : Pass options through the constructor #

Total comments: 1

Patch Set 5 : Update comment #

Total comments: 4

Patch Set 6 : Code cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -13 lines) Patch
M gyp/gpu.gyp View 1 chunk +0 lines, -3 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 5 3 chunks +19 lines, -2 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 3 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
krajcevski
6 years, 4 months ago (2014-08-11 16:09:24 UTC) #1
krajcevski
6 years, 4 months ago (2014-08-11 18:53:27 UTC) #2
bsalomon
https://codereview.chromium.org/459033002/diff/20001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/459033002/diff/20001/include/gpu/GrContext.h#newcode54 include/gpu/GrContext.h:54: bool fDrawPathToCompressedTexture; Should we label this field experimental or ...
6 years, 4 months ago (2014-08-11 19:00:47 UTC) #3
krajcevski
https://codereview.chromium.org/459033002/diff/20001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/459033002/diff/20001/include/gpu/GrContext.h#newcode54 include/gpu/GrContext.h:54: bool fDrawPathToCompressedTexture; On 2014/08/11 19:00:47, bsalomon wrote: > Should ...
6 years, 4 months ago (2014-08-11 19:09:55 UTC) #4
robertphillips
https://codereview.chromium.org/459033002/diff/40001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/459033002/diff/40001/include/gpu/GrContext.h#newcode956 include/gpu/GrContext.h:956: */ drawPathsToCompressedTextures ? compressCoverageMasks ? https://codereview.chromium.org/459033002/diff/40001/include/gpu/GrContext.h#newcode1005 include/gpu/GrContext.h:1005: int fMaxTextureSizeOverride; ...
6 years, 4 months ago (2014-08-11 19:22:20 UTC) #5
bsalomon
https://codereview.chromium.org/459033002/diff/40001/src/gpu/GrSWMaskHelper.cpp File src/gpu/GrSWMaskHelper.cpp (right): https://codereview.chromium.org/459033002/diff/40001/src/gpu/GrSWMaskHelper.cpp#newcode172 src/gpu/GrSWMaskHelper.cpp:172: if (fContext->supportsDrawPathToCompressedTexture() && Could we just expose the options ...
6 years, 4 months ago (2014-08-11 19:42:42 UTC) #6
krajcevski
https://codereview.chromium.org/459033002/diff/40001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/459033002/diff/40001/include/gpu/GrContext.h#newcode956 include/gpu/GrContext.h:956: */ On 2014/08/11 19:22:20, robertphillips wrote: > drawPathsToCompressedTextures ? ...
6 years, 4 months ago (2014-08-11 20:01:34 UTC) #7
bsalomon
lgtm if comment is updated https://codereview.chromium.org/459033002/diff/60001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/459033002/diff/60001/include/gpu/GrContext.h#newcode954 include/gpu/GrContext.h:954: * This returns true ...
6 years, 4 months ago (2014-08-11 20:51:32 UTC) #8
robertphillips
https://codereview.chromium.org/459033002/diff/80001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/459033002/diff/80001/include/gpu/GrContext.h#newcode52 include/gpu/GrContext.h:52: struct Options { For now we can just have ...
6 years, 4 months ago (2014-08-11 21:36:32 UTC) #9
krajcevski
https://codereview.chromium.org/459033002/diff/80001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/459033002/diff/80001/include/gpu/GrContext.h#newcode52 include/gpu/GrContext.h:52: struct Options { On 2014/08/11 21:36:31, robertphillips wrote: > ...
6 years, 4 months ago (2014-08-12 14:17:50 UTC) #10
krajcevski
The CQ bit was checked by krajcevski@google.com
6 years, 4 months ago (2014-08-12 14:17:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/krajcevski@google.com/459033002/100001
6 years, 4 months ago (2014-08-12 14:18:24 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 14:26:30 UTC) #13
Message was sent while issue was closed.
Change committed as 9c6d4d744a9e0375d0e7d7a7b19558f5259fc3c3

Powered by Google App Engine
This is Rietveld 408576698