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

Issue 827923006: Cap id size returned by GrScratchKey::GenerateResourceType (Closed)

Created:
5 years, 11 months ago by robertphillips
Modified:
5 years, 11 months ago
Reviewers:
jvanverth1, egdaniel
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Cap id size returned by GrScratchKey::GenerateResourceType kkinnunen@ has been seeing compiler warnings on GrScratchKey::GenerateResourceType (https://codereview.chromium.org/833913002/ - Cast the scratch resource key in order to fix a warning)(presumably due to the unsigned/signed comparison in kInvalidResourceType == type). This CL limits the returned id to its effective range to, hopefully, clarify the whole int32_t -> uint32_t conversion & wrapping problem. Committed: https://skia.googlesource.com/skia/+/9790a7b36b7704f6f490368778bff16302bb7cb6

Patch Set 1 #

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

Messages

Total messages: 6 (2 generated)
robertphillips
5 years, 11 months ago (2015-01-05 19:59:19 UTC) #2
jvanverth1
lgtm
5 years, 11 months ago (2015-01-05 20:07:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/827923006/1
5 years, 11 months ago (2015-01-05 20:20:50 UTC) #5
commit-bot: I haz the power
5 years, 11 months ago (2015-01-05 20:29:18 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/9790a7b36b7704f6f490368778bff16302bb7cb6

Powered by Google App Engine
This is Rietveld 408576698