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

Issue 6129043: Addition of flush to SkGrTexturePixelRef::deepCopy(...) (Closed)

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

Description

Addition of necessary flush to copyToTexturePixelRef(...). Ganesh batches drawing operations, which means that the copy operation, which does not flush the pipeline, can capture stale contents. By forcing a flush, the up-to-date version of the texture is copied. TEST=none BUG=124054 Committed: https://code.google.com/p/skia/source/detail?r=3785

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/gpu/GrContext.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5
twiz1
PTAL.
12 years, 4 months ago (2012-04-26 22:54:21 UTC) #1
brian2
On 2012/04/26 22:54:21, twiz1 wrote: > PTAL. Jeff, nice catch! I think the flush should ...
12 years, 4 months ago (2012-04-26 23:42:22 UTC) #2
bsalomon
On 2012/04/26 23:42:22, brian2 wrote: > On 2012/04/26 22:54:21, twiz1 wrote: > > PTAL. > ...
12 years, 4 months ago (2012-04-27 00:04:58 UTC) #3
twiz1
On 2012/04/27 00:04:58, bsalomon wrote: > On 2012/04/26 23:42:22, brian2 wrote: > > On 2012/04/26 ...
12 years, 4 months ago (2012-04-27 19:22:25 UTC) #4
bsalomon
12 years, 4 months ago (2012-04-27 19:27:16 UTC) #5
On 2012/04/27 19:22:25, twiz1 wrote:
> On 2012/04/27 00:04:58, bsalomon wrote:
> > On 2012/04/26 23:42:22, brian2 wrote:
> > > On 2012/04/26 22:54:21, twiz1 wrote:
> > > > PTAL.
> > > 
> > > Jeff, nice catch! I think the flush should go into GrContext::copyTexture,
> > > though. We should probably have a comment similar to the one in
> > > resolveRenderTarget, just above copyTexture in GrContext.cpp, indicating
> that
> > we
> > > aren't tracking whether there are pending writes to the src texture.
> > 
> > BTW this comment was from me (accidentally posted from personal account).
> 
> Thanks for your review, Brian.  I made the changes you suggested.
> 
> It would be interesting if we could selectively flush to the given texture,
> instead of flushing the whole pipeline.

Agreed. We will have to do that at some point.

LGTM
Sign in to reply to this message.

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