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

Issue 2245923002: Moved "drawShadowedPicture" call outside of if cases in onDrawContent (Closed)

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

Description

Moved "drawShadowedPicture" call outside of if cases in onDrawContent. Bug description: If you updated the view without changing frames (such as moving around the cursor with 'z' (pixel zoom) on) the window would turn gray. This was because I left the drawShadowedPicture call inside of the "if-updated" case inside of SampleShadowing's onDrawContent handler. If nothing changed and onDrawContent is called, we still need to update the given canvas's fLights (there is no guarantee of whether the canvas (or its fLights) has been updated or not), and then draw the shadowed picture. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2245923002 Committed: https://skia.googlesource.com/skia/+/d707f2d1cf91505d45edc2d92a7faac788d0d99e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M samplecode/SampleShadowing.cpp View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
vjiaoblack
There was this bug I kept manually fixing in many of my other CLs, but ...
4 years, 4 months ago (2016-08-13 15:04:38 UTC) #3
jvanverth1
On 2016/08/13 15:04:38, vjiaoblack wrote: > There was this bug I kept manually fixing in ...
4 years, 4 months ago (2016-08-16 01:21:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2245923002/1
4 years, 4 months ago (2016-08-16 12:18:43 UTC) #7
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 12:38:48 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/d707f2d1cf91505d45edc2d92a7faac788d0d99e

Powered by Google App Engine
This is Rietveld 408576698