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

Issue 1113003005: Defer glClear to just before draw call (Closed)

Created:
5 years, 7 months ago by Wasim.Abbas
Modified:
5 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Defer glClear to just before draw call Remove some DO_DEFERRED_CLEAR call to avoid call glClear separately, like this: glBindFramebuffer(1) glClear glBindFramebuffer(2) glClear glBindFramebuffer(1) glDrawXXX glBindFramebuffer(2) glDrawXXX These call sequences may need read and write memory back and forth. If we call DO_DEFERRED_CLEAR just before draw call, we can bind, clear and draw in one go. e.g. glBindFramebuffer(1) glClear glDrawXXX glBindFramebuffer(2) glClear glDrawXXX BUG=skia: Committed: https://skia.googlesource.com/skia/+/c3c06a13e69b90d4cc1d543853504072d363ae8b

Patch Set 1 #

Patch Set 2 : Re-Added DO_DEFFERED_CLEAR in two places #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/gpu/SkGpuDevice.cpp View 1 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (3 generated)
Wasim.Abbas
5 years, 7 months ago (2015-05-01 11:22:30 UTC) #2
bsalomon
Are these removals legal? In these cases it looks to me like if we got ...
5 years, 7 months ago (2015-05-04 15:12:34 UTC) #3
Joel.Liang
On 2015/05/04 15:12:34, bsalomon wrote: > Are these removals legal? In these cases it looks ...
5 years, 7 months ago (2015-05-07 06:42:30 UTC) #4
bsalomon
On 2015/05/07 06:42:30, joel.liang wrote: > On 2015/05/04 15:12:34, bsalomon wrote: > > Are these ...
5 years, 7 months ago (2015-05-07 14:21:54 UTC) #5
Joel.Liang
On 2015/05/07 14:21:54, bsalomon wrote: > On 2015/05/07 06:42:30, joel.liang wrote: > > On 2015/05/04 ...
5 years, 7 months ago (2015-05-08 09:09:39 UTC) #6
bsalomon
lgtm
5 years, 7 months ago (2015-05-12 19:08:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113003005/20001
5 years, 7 months ago (2015-05-14 15:18:26 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/c3c06a13e69b90d4cc1d543853504072d363ae8b
5 years, 7 months ago (2015-05-14 15:24:57 UTC) #10
robertphillips
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1136393005/ by robertphillips@google.com. ...
5 years, 7 months ago (2015-05-14 15:53:44 UTC) #11
robertphillips
Here is the Mac call stack: unit test SkImage_NewFromTexture../../src/gpu/SkGpuDevice.cpp:319: failed assertion "!fNeedClear" Signal 11: _sigtramp ...
5 years, 7 months ago (2015-05-14 15:56:13 UTC) #13
robertphillips
This CL also seems to have introduced a visual artifact in the convex_poly_clip on the ...
5 years, 7 months ago (2015-05-14 16:42:00 UTC) #14
robertphillips
And added a stray rectangle to the imagealphathreshold GM.
5 years, 7 months ago (2015-05-14 16:43:11 UTC) #15
Joel.Liang
5 years, 7 months ago (2015-05-18 08:46:22 UTC) #16
Message was sent while issue was closed.
On 2015/05/14 16:42:00, robertphillips wrote:
> This CL also seems to have introduced a visual artifact in the
convex_poly_clip
> on the Nexus5 (a small extra triangle appearing in the bottom row).

On 2015/05/14 16:43:11, robertphillips wrote:
> And added a stray rectangle to the imagealphathreshold GM.

I can not reproduce this two artifacts on Nexus5 with Android 4.4.2.
Which Android version you are using for GM tests?

Powered by Google App Engine
This is Rietveld 408576698