Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2485)

Issue 6947078: Accelerate AA filled rect drawing using drawIndexedInstances (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by robertphillips
Modified:
11 years, 6 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This is an alternate method of accelerating AA fill rect drawing than https://codereview.appspot.com/6940060/. BEFORE: aarects 8888: msecs = 23.64 GPU: msecs = 94.26 AFTER: aarects 8888: msecs = 23.80 GPU: msecs = 32.24 Which is equivalent to the speedup seen in the old CL.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed code review issues #

Total comments: 2

Patch Set 3 : Moved constants out of header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -31 lines) Patch
include/gpu/GrAARectRenderer.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
src/gpu/GrAARectRenderer.cpp View 1 2 4 chunks +37 lines, -16 lines 0 comments Download
src/gpu/GrInOrderDrawBuffer.cpp View 2 chunks +12 lines, -11 lines 0 comments Download

Messages

Total messages: 5
robertphillips
https://codereview.appspot.com/6947078/diff/1/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): https://codereview.appspot.com/6947078/diff/1/src/gpu/GrInOrderDrawBuffer.cpp#newcode349 src/gpu/GrInOrderDrawBuffer.cpp:349: draw->fVertexCount = 0; fIndexCount wasn't being set before so ...
11 years, 6 months ago (2012-12-18 20:55:49 UTC) #1
bsalomon
I like this a lot better.. it's much more localized. https://codereview.appspot.com/6947078/diff/1/include/gpu/GrAARectRenderer.h File include/gpu/GrAARectRenderer.h (right): https://codereview.appspot.com/6947078/diff/1/include/gpu/GrAARectRenderer.h#newcode57 ...
11 years, 6 months ago (2012-12-18 21:05:50 UTC) #2
robertphillips
https://codereview.appspot.com/6947078/diff/1/include/gpu/GrAARectRenderer.h File include/gpu/GrAARectRenderer.h (right): https://codereview.appspot.com/6947078/diff/1/include/gpu/GrAARectRenderer.h#newcode57 include/gpu/GrAARectRenderer.h:57: static const int kIndicesPerAAFillRect = 30; On 2012/12/18 21:05:50, ...
11 years, 6 months ago (2012-12-18 21:26:49 UTC) #3
bsalomon
LGTM https://codereview.appspot.com/6947078/diff/6001/include/gpu/GrAARectRenderer.h File include/gpu/GrAARectRenderer.h (right): https://codereview.appspot.com/6947078/diff/6001/include/gpu/GrAARectRenderer.h#newcode57 include/gpu/GrAARectRenderer.h:57: static const int kIndicesPerAAFillRect; I was thinking that ...
11 years, 6 months ago (2012-12-18 21:31:40 UTC) #4
robertphillips
11 years, 6 months ago (2012-12-18 21:48:14 UTC) #5
Message was sent while issue was closed.
committed as r6889

https://codereview.appspot.com/6947078/diff/6001/include/gpu/GrAARectRenderer.h
File include/gpu/GrAARectRenderer.h (right):

https://codereview.appspot.com/6947078/diff/6001/include/gpu/GrAARectRenderer...
include/gpu/GrAARectRenderer.h:57: static const int kIndicesPerAAFillRect;
On 2012/12/18 21:31:40, bsalomon wrote:
> I was thinking that these (and the g...Idx[] arrays) don't even have to be
> declared here as members but rather could be defined as
statics/anony-namespace
> in the cpp.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b