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

Issue 387113002: drawVertices bug on gpu side (Closed)

Created:
6 years, 5 months ago by dandov
Modified:
6 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Fixed the bug in drawVertices when no colors or texture coordinates are provided by modifying the grprimitive to klines and adjusting the indices. BUG=skia:2745 Committed: https://skia.googlesource.com/skia/+/612364de87cb2012239c4f6435e8e11760617fdc Committed: https://skia.googlesource.com/skia/+/32a311bfc056169c9f3b1c299c57ff5139a0d8bc

Patch Set 1 #

Patch Set 2 : calculate index count based on the number of traingles determined by the primitive type #

Total comments: 4

Patch Set 3 : only copy skpaint when we need to #

Patch Set 4 : copy indices only when a no colors or texture coordninates are passed #

Patch Set 5 : Remove memory leak when allocating new indices #

Total comments: 2

Patch Set 6 : removed ugly cast for const uint16_t* #

Total comments: 1

Patch Set 7 : Fixed issue with gm's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -20 lines) Patch
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 2 chunks +48 lines, -20 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
dandov
I found this bug when I was trying to draw a patch using drawVertices, in ...
6 years, 5 months ago (2014-07-14 13:47:39 UTC) #1
jvanverth1
https://codereview.chromium.org/387113002/diff/20001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/387113002/diff/20001/src/gpu/SkGpuDevice.cpp#newcode1618 src/gpu/SkGpuDevice.cpp:1618: SkPaint copy(paint); I don't think we'd want to copy ...
6 years, 5 months ago (2014-07-14 14:29:20 UTC) #2
dandov
Moved declaration of GrPaint to the top and only copy the SkPaint when it is ...
6 years, 5 months ago (2014-07-14 15:31:34 UTC) #3
dandov
Removed memcpy for the same indices that were passed and added auto deleter for indices ...
6 years, 5 months ago (2014-07-14 17:36:38 UTC) #4
dandov
Removed cast for const uint16_t* https://codereview.chromium.org/387113002/diff/90001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/387113002/diff/90001/src/gpu/SkGpuDevice.cpp#newcode1616 src/gpu/SkGpuDevice.cpp:1616: const uint16_t* outIndices; now ...
6 years, 5 months ago (2014-07-14 20:10:14 UTC) #5
jvanverth1
lgtm
6 years, 5 months ago (2014-07-14 20:17:07 UTC) #6
dandov
The CQ bit was checked by dandov@google.com
6 years, 5 months ago (2014-07-14 21:13:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/387113002/90001
6 years, 5 months ago (2014-07-14 21:14:16 UTC) #8
commit-bot: I haz the power
Change committed as 612364de87cb2012239c4f6435e8e11760617fdc
6 years, 5 months ago (2014-07-14 21:26:09 UTC) #9
dandov
A revert of this CL has been created in https://codereview.chromium.org/395613002/ by dandov@google.com. The reason for ...
6 years, 5 months ago (2014-07-14 21:51:37 UTC) #10
dandov
The CQ bit was checked by dandov@google.com
6 years, 5 months ago (2014-07-15 17:16:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/387113002/110001
6 years, 5 months ago (2014-07-15 17:18:04 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 02:46:31 UTC) #13
Message was sent while issue was closed.
Change committed as 32a311bfc056169c9f3b1c299c57ff5139a0d8bc

Powered by Google App Engine
This is Rietveld 408576698