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

Issue 450283002: Simplify GrGLPathRendering interface (Closed)

Created:
6 years, 4 months ago by Kimmo Kinnunen
Modified:
6 years, 4 months ago
Reviewers:
Chris Dalton, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@02-path-state-to-pathrendering-class
Project:
skia
Visibility:
Public.

Description

Simplify GrGLPathRendering interface Simplify GrGLPathRendering interface by removing polymorphism and functions that simply wrap GL functions unnecessarily. Replace the polymorphism by if -condition. Call the unconditional GL functions directly. GrGLPath, GrGLPathRange and GrGLPathRendering are part of the same logical subsystem. This means that the subsystem implementation details are taken into account within these classes. Example: if support for using conics would be added, the feature flag would go to GrGLPathRendering::Caps, the emulation would go to GrGLPath instead of GrGLPathRendering::pathCommands. Wrapping glPathCommandsNV is not useful. Try to expose the interface fully in same logical level; rename fragment input function to reflect this. Committed: https://skia.googlesource.com/skia/+/5b653577994fe298e08e5f7a5c1fa39fe53c9203

Patch Set 1 #

Total comments: 2

Patch Set 2 : address review comment #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -347 lines) Patch
M src/gpu/gl/GrGLPath.cpp View 1 2 chunks +13 lines, -7 lines 0 comments Download
M src/gpu/gl/GrGLPathRange.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLPathRendering.h View 1 2 5 chunks +51 lines, -63 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 1 2 12 chunks +153 lines, -275 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Kimmo Kinnunen
Depends: https://codereview.chromium.org/444223002/ (reland of GrGLPathRendering) https://codereview.chromium.org/452823002/ (Separate GL path rendering state from GrGpuGL to GrGLPathRendering)
6 years, 4 months ago (2014-08-08 12:45:03 UTC) #1
Chris Dalton
The GrGLPathRendering class serves a completely different purpose now, which is OK since GrGpuGL was ...
6 years, 4 months ago (2014-08-14 17:03:45 UTC) #2
Kimmo Kinnunen
On 2014/08/14 17:03:45, Chris Dalton wrote: > But, I do miss having a class that ...
6 years, 4 months ago (2014-08-15 07:02:04 UTC) #3
Kimmo Kinnunen
https://chromiumcodereview.appspot.com/450283002/diff/1/src/gpu/gl/GrGLPathRendering.h File src/gpu/gl/GrGLPathRendering.h (right): https://chromiumcodereview.appspot.com/450283002/diff/1/src/gpu/gl/GrGLPathRendering.h#newcode101 src/gpu/gl/GrGLPathRendering.h:101: bool thenFunctionsSupport : 1; On 2014/08/14 17:03:45, Chris Dalton ...
6 years, 4 months ago (2014-08-15 07:02:16 UTC) #4
Chris Dalton
lgtm lgtm
6 years, 4 months ago (2014-08-15 17:56:41 UTC) #5
Chris Dalton
> But the question is: what actual benefit does this bring? The benefit is that ...
6 years, 4 months ago (2014-08-15 18:01:38 UTC) #6
bsalomon
lgtm
6 years, 4 months ago (2014-08-19 21:22:58 UTC) #7
Kimmo Kinnunen
The CQ bit was checked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-20 11:04:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/kkinnunen@nvidia.com/450283002/20001
6 years, 4 months ago (2014-08-20 11:05:05 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-20 11:05:08 UTC) #10
commit-bot: I haz the power
Failed to apply patch for src/gpu/gl/GrGLPathRendering.h: While running git apply --index -p1; error: patch failed: ...
6 years, 4 months ago (2014-08-20 11:05:09 UTC) #11
Kimmo Kinnunen
The CQ bit was unchecked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-20 11:05:19 UTC) #12
Kimmo Kinnunen
The CQ bit was checked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-20 11:06:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/kkinnunen@nvidia.com/450283002/40001
6 years, 4 months ago (2014-08-20 11:06:55 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 11:13:32 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (40001) as 5b653577994fe298e08e5f7a5c1fa39fe53c9203

Powered by Google App Engine
This is Rietveld 408576698