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

Issue 15780002: Replace GrDrawState::AutoDeviceCoordDraw with GrDrawState::AutoViewMatrixRestore::setIdentity(). s (Closed)

Created:
7 years, 7 months ago by bsalomon
Modified:
7 years, 6 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Replace GrDrawState::AutoDeviceCoordDraw with GrDrawState::AutoViewMatrixRestore::setIdentity(). s R=robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=9331

Patch Set 1 #

Patch Set 2 : undo unrelated change #

Total comments: 3

Patch Set 3 : all matrix ops on draw state update effect local coord matrices #

Total comments: 4

Patch Set 4 : update based on comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -232 lines) Patch
M src/gpu/GrAAConvexPathRenderer.cpp View 1 2 3 chunks +10 lines, -12 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 2 1 chunk +6 lines, -8 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 6 chunks +18 lines, -17 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 5 chunks +11 lines, -13 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 5 chunks +56 lines, -117 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 3 2 chunks +36 lines, -39 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 chunks +25 lines, -7 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 chunks +37 lines, -3 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bsalomon
Makes removing the single fixed sized effect array slightly easier to consolidate these very similar ...
7 years, 7 months ago (2013-05-22 21:36:53 UTC) #1
robertphillips
lgtm + a question & a suggestion https://codereview.chromium.org/15780002/diff/2001/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.chromium.org/15780002/diff/2001/src/gpu/GrDrawState.cpp#newcode401 src/gpu/GrDrawState.cpp:401: is it ...
7 years, 7 months ago (2013-05-22 23:47:01 UTC) #2
jvanverth1
Is there any effect on perf? It looks like you're replacing pointer references with copies. ...
7 years, 7 months ago (2013-05-23 12:50:45 UTC) #3
bsalomon
https://codereview.chromium.org/15780002/diff/2001/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.chromium.org/15780002/diff/2001/src/gpu/GrDrawState.cpp#newcode401 src/gpu/GrDrawState.cpp:401: On 2013/05/22 23:47:01, robertphillips wrote: > is it right ...
7 years, 7 months ago (2013-05-23 12:52:02 UTC) #4
bsalomon
In the updated patch there is no direct setting of GrDrawState's matrix. All updates go ...
7 years, 6 months ago (2013-05-29 13:41:10 UTC) #5
robertphillips
lgtm + nits https://codereview.chromium.org/15780002/diff/11001/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.chromium.org/15780002/diff/11001/src/gpu/GrDrawState.cpp#newcode15 src/gpu/GrDrawState.cpp:15: if (this->isStageEnabled(s)) { if (!inverted) { ...
7 years, 6 months ago (2013-05-29 21:16:20 UTC) #6
bsalomon
Committed patchset #4 manually as r9331 (presubmit successful).
7 years, 6 months ago (2013-05-29 21:28:53 UTC) #7
bsalomon
7 years, 6 months ago (2013-06-03 14:31:40 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/15780002/diff/11001/src/gpu/GrDrawState.cpp
File src/gpu/GrDrawState.cpp (right):

https://codereview.chromium.org/15780002/diff/11001/src/gpu/GrDrawState.cpp#n...
src/gpu/GrDrawState.cpp:15: if (this->isStageEnabled(s)) {
On 2013/05/29 21:16:20, robertphillips wrote:
> if (!inverted) {
>   if (!fCommon....) {
>      return false;
>   }
>   inverted = true;
> }
> 
> it just seems odd to keep setting inverted to true.

Done.

https://codereview.chromium.org/15780002/diff/11001/src/gpu/GrDrawState.h
File src/gpu/GrDrawState.h (right):

https://codereview.chromium.org/15780002/diff/11001/src/gpu/GrDrawState.h#new...
src/gpu/GrDrawState.h:954: } else {
On 2013/05/29 21:16:20, robertphillips wrote:
> fViewMatrix = -- add space

Done.

Powered by Google App Engine
This is Rietveld 408576698