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

Issue 23021015: Initial error handling code (Closed)

Created:
7 years, 4 months ago by sugoi1
Modified:
7 years, 2 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Initial error handling code I made it as simple as possible. The impact seems minimal and it should do what's necessary to make this code secure. BUG= Committed: http://code.google.com/p/skia/source/detail?r=11247 Committed: http://code.google.com/p/skia/source/detail?r=11922

Patch Set 1 #

Total comments: 12

Patch Set 2 : 2nd proposition, with some comments adressed #

Total comments: 6

Patch Set 3 : Fixing some small issues #

Patch Set 4 : Adding eof() checks #

Patch Set 5 : New SkSecureReadBuffer class #

Total comments: 13

Patch Set 6 : Minor tweaks #

Patch Set 7 : Removed secure reader class #

Patch Set 8 : Added ImageFilter derived classes safety checks #

Patch Set 9 : Added ImageFilter derived classes safety checks (retry) #

Total comments: 12

Patch Set 10 : Adding validation helper file #

Total comments: 14

Patch Set 11 : Minor fixes #

Total comments: 2

Patch Set 12 : Simplified SkRect/SkIRect validity tests #

Total comments: 5

Patch Set 13 : Renamed validateData to validate #

Patch Set 14 : New serialization method #

Total comments: 59

Patch Set 15 : Fixed some comments #

Patch Set 16 : Adding macros and cleaning up #

Patch Set 17 : Fixed windows warnings as errors #

Patch Set 18 : Reverted the typedef changes #

Total comments: 8

Patch Set 19 : Minor comment fixes #

Total comments: 3

Patch Set 20 : Serialization with strings as ID #

Total comments: 73

Patch Set 21 : Fixing comments #

Patch Set 22 : Fixing comments #

Patch Set 23 : Fixing comments #

Total comments: 4

Patch Set 24 : Fixed a few mistakes #

Patch Set 25 : Integrated readFoo() functions #

Patch Set 26 : SkEffectType used in Registrar functions #

Patch Set 27 : Clean up #

Patch Set 28 : Integrating readFoo changes #

Total comments: 11

Patch Set 29 : Comments fixed #

Total comments: 17

Patch Set 30 : Minor fixes #

Total comments: 6

Patch Set 31 : SkEffectType -> SkFlattenable::Type #

Total comments: 2

Patch Set 32 : GetType() -> GetFlattenableType() #

Patch Set 33 : Removing pipe changes #

Total comments: 9

Patch Set 34 : Fixed bad merge in SkBitmap.cpp #

Patch Set 35 : Synced chromium init with default init #

Patch Set 36 : Adapting code to sk_once changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+791 lines, -115 lines) Patch
M gm/imagefiltersbase.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +4 lines, -2 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkColorFilter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkDrawLooper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 21 22 23 24 25 26 27 28 29 30 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkFlattenable.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 5 chunks +33 lines, -5 lines 0 comments Download
M include/core/SkFlattenableBuffers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 6 chunks +38 lines, -48 lines 0 comments Download
M include/core/SkImageFilter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkMaskFilter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkPathEffect.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkPixelRef.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkRasterizer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkShader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkUnitMapper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkXfermode.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +2 lines, -0 lines 0 comments Download
M include/effects/SkArithmeticMode.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +6 lines, -3 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 4 chunks +8 lines, -4 lines 0 comments Download
M src/core/SkFlattenable.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +36 lines, -16 lines 0 comments Download
M src/core/SkFlattenableBuffers.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +55 lines, -0 lines 0 comments Download
M src/core/SkFlattenableSerialization.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkGraphics.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +2 lines, -0 lines 0 comments Download
M src/core/SkOrderedReadBuffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkOrderedReadBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkOrderedWriteBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +7 lines, -2 lines 0 comments Download
M src/core/SkScalerContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +9 lines, -7 lines 0 comments Download
A src/core/SkValidatingReadBuffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +80 lines, -0 lines 0 comments Download
A src/core/SkValidatingReadBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +259 lines, -0 lines 0 comments Download
A src/core/SkValidationUtils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +47 lines, -0 lines 0 comments Download
M src/effects/SkBicubicImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M src/effects/SkBlurImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -0 lines 0 comments Download
M src/effects/SkColorFilters.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 2 chunks +2 lines, -0 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +3 lines, -0 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 2 chunks +17 lines, -0 lines 0 comments Download
M src/effects/SkDropShadowImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 5 chunks +12 lines, -1 line 0 comments Download
M src/effects/SkMagnifierImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 2 chunks +3 lines, -0 lines 0 comments Download
M src/effects/SkMatrixConvolutionImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 2 chunks +15 lines, -0 lines 0 comments Download
M src/effects/SkMergeImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -1 line 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -0 lines 0 comments Download
M src/effects/SkOffsetImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -0 lines 0 comments Download
M src/effects/SkTestImageFilters.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkTileImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M src/pipe/SkGPipeRead.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +11 lines, -11 lines 0 comments Download
M src/ports/SkGlobalInitialization_chromium.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +89 lines, -5 lines 0 comments Download
M src/ports/SkGlobalInitialization_default.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 5 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 96 (0 generated)
sugoi1
https://codereview.chromium.org/23021015/diff/1/include/core/SkError.h File include/core/SkError.h (right): https://codereview.chromium.org/23021015/diff/1/include/core/SkError.h#newcode18 include/core/SkError.h:18: kNoError_SkError = 0x00, Changed these values so that they ...
7 years, 4 months ago (2013-08-21 15:33:40 UTC) #1
reed1
Just to make our decision-making easier, lets not *also* turn SkError from an enum to ...
7 years, 4 months ago (2013-08-21 15:49:24 UTC) #2
sugoi1
On 2013/08/21 15:49:24, reed1 wrote: > Just to make our decision-making easier, lets not *also* ...
7 years, 4 months ago (2013-08-21 16:52:28 UTC) #3
sugoi1
https://codereview.chromium.org/23021015/diff/1/src/core/SkImageFilter.cpp File src/core/SkImageFilter.cpp (right): https://codereview.chromium.org/23021015/diff/1/src/core/SkImageFilter.cpp#newcode68 src/core/SkImageFilter.cpp:68: buffer.setError(kInvalidArgument_SkError); On 2013/08/21 15:49:24, reed1 wrote: > Should we ...
7 years, 4 months ago (2013-08-21 16:52:35 UTC) #4
sugoi
Here's the new version. https://codereview.chromium.org/23021015/diff/9001/src/core/SkImageFilter.cpp File src/core/SkImageFilter.cpp (right): https://codereview.chromium.org/23021015/diff/9001/src/core/SkImageFilter.cpp#newcode71 src/core/SkImageFilter.cpp:71: (fCropRect.fTop > fCropRect.fBottom)) { Although ...
7 years, 4 months ago (2013-08-21 20:19:39 UTC) #5
scroggo
https://codereview.chromium.org/23021015/diff/1/include/core/SkError.h File include/core/SkError.h (right): https://codereview.chromium.org/23021015/diff/1/include/core/SkError.h#newcode18 include/core/SkError.h:18: kNoError_SkError = 0x00, On 2013/08/21 15:33:41, sugoi1 wrote: > ...
7 years, 4 months ago (2013-08-21 23:56:00 UTC) #6
scroggo
Please ignore comments on SkError changes which have been removed... https://codereview.chromium.org/23021015/diff/1/include/core/SkError.h File include/core/SkError.h (right): https://codereview.chromium.org/23021015/diff/1/include/core/SkError.h#newcode18 ...
7 years, 4 months ago (2013-08-21 23:57:16 UTC) #7
sugoi1
https://codereview.chromium.org/23021015/diff/9001/src/core/SkOrderedReadBuffer.cpp File src/core/SkOrderedReadBuffer.cpp (right): https://codereview.chromium.org/23021015/diff/9001/src/core/SkOrderedReadBuffer.cpp#newcode304 src/core/SkOrderedReadBuffer.cpp:304: if (fError) { On 2013/08/21 23:56:00, scroggo wrote: > ...
7 years, 4 months ago (2013-08-22 14:26:23 UTC) #8
reed1
https://codereview.chromium.org/23021015/diff/9001/src/core/SkImageFilter.cpp File src/core/SkImageFilter.cpp (right): https://codereview.chromium.org/23021015/diff/9001/src/core/SkImageFilter.cpp#newcode66 src/core/SkImageFilter.cpp:66: if (!SkScalarIsFinite(fCropRect.fLeft) || SkIRect stores ints, so calling isfinite ...
7 years, 4 months ago (2013-08-22 15:41:14 UTC) #9
sugoi1
https://codereview.chromium.org/23021015/diff/9001/src/core/SkImageFilter.cpp File src/core/SkImageFilter.cpp (right): https://codereview.chromium.org/23021015/diff/9001/src/core/SkImageFilter.cpp#newcode66 src/core/SkImageFilter.cpp:66: if (!SkScalarIsFinite(fCropRect.fLeft) || On 2013/08/22 15:41:14, reed1 wrote: > ...
7 years, 4 months ago (2013-08-22 17:37:02 UTC) #10
reed1
At this stage, I've run out of syntax nits, and am just interested in the ...
7 years, 4 months ago (2013-08-22 19:45:07 UTC) #11
sugoi1
On 2013/08/22 19:45:07, reed1 wrote: > At this stage, I've run out of syntax nits, ...
7 years, 4 months ago (2013-08-22 20:02:11 UTC) #12
reed1
What if the stream contains count + [count] values, and the reading code encounters -1 ...
7 years, 4 months ago (2013-08-22 20:14:17 UTC) #13
sugoi1
On 2013/08/22 20:14:17, reed1 wrote: > What if the stream contains count + [count] values, ...
7 years, 4 months ago (2013-08-23 18:03:50 UTC) #14
sugoi1
I added eof() checks, just so that we can see what it would look like. ...
7 years, 4 months ago (2013-08-23 18:39:37 UTC) #15
sugoi1
Here's the initial version of the "secure read buffer" class. I'll add more security checks ...
7 years, 3 months ago (2013-08-29 18:55:53 UTC) #16
reed1
High-level question: Can we get away with just a SecureBuffer, instead of a SecureBuffer AND ...
7 years, 3 months ago (2013-08-29 19:08:21 UTC) #17
sugoi1
On 2013/08/29 19:08:21, reed1 wrote: > High-level question: > > Can we get away with ...
7 years, 3 months ago (2013-08-29 19:39:39 UTC) #18
reed1
Do we ever have callers/users of SkSerializeFlattenable() that don't want security? Why isn't this an ...
7 years, 3 months ago (2013-08-29 19:57:56 UTC) #19
sugoi1
On 2013/08/29 19:57:56, reed1 wrote: > Do we ever have callers/users of SkSerializeFlattenable() that don't ...
7 years, 3 months ago (2013-08-29 20:02:42 UTC) #20
reed1
On 2013/08/29 20:02:42, sugoi1 wrote: > On 2013/08/29 19:57:56, reed1 wrote: > > Do we ...
7 years, 3 months ago (2013-08-29 20:04:16 UTC) #21
sugoi1
On 2013/08/29 20:04:16, reed1 wrote: > I guess this goes back to my request for ...
7 years, 3 months ago (2013-08-29 20:09:54 UTC) #22
reed1
On 2013/08/29 20:09:54, sugoi1 wrote: > On 2013/08/29 20:04:16, reed1 wrote: > > I guess ...
7 years, 3 months ago (2013-08-29 20:12:11 UTC) #23
mtklein
On 2013/08/29 19:57:56, reed1 wrote: > Do we ever have callers/users of SkSerializeFlattenable() that don't ...
7 years, 3 months ago (2013-08-30 15:28:23 UTC) #24
sugoi1
So, for reference, here's what it would look like if we used SkReader32 directly.
7 years, 3 months ago (2013-08-30 15:51:07 UTC) #25
sugoi1
On 2013/08/30 15:28:23, mtklein wrote: > I'd like take a swing at this to maybe ...
7 years, 3 months ago (2013-09-03 20:18:13 UTC) #26
reed1
https://codereview.chromium.org/23021015/diff/47001/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.chromium.org/23021015/diff/47001/include/core/SkBitmap.h#newcode225 include/core/SkBitmap.h:225: static bool IsValidConfig(Config config); can we put this in ...
7 years, 3 months ago (2013-09-03 20:25:20 UTC) #27
sugoi1
Minor tweaks and fixes. @mtklein: Since your design may still take a while, would it ...
7 years, 3 months ago (2013-09-04 18:01:10 UTC) #28
reed1
https://codereview.chromium.org/23021015/diff/56001/include/core/SkFlattenableBuffers.h File include/core/SkFlattenableBuffers.h (right): https://codereview.chromium.org/23021015/diff/56001/include/core/SkFlattenableBuffers.h#newcode57 include/core/SkFlattenableBuffers.h:57: bool isSecure() const { return SkToBool(fFlags & kValidation_Flag); } ...
7 years, 3 months ago (2013-09-04 18:49:35 UTC) #29
sugoi1
https://codereview.chromium.org/23021015/diff/56001/include/core/SkFlattenableBuffers.h File include/core/SkFlattenableBuffers.h (right): https://codereview.chromium.org/23021015/diff/56001/include/core/SkFlattenableBuffers.h#newcode57 include/core/SkFlattenableBuffers.h:57: bool isSecure() const { return SkToBool(fFlags & kValidation_Flag); } ...
7 years, 3 months ago (2013-09-04 20:14:51 UTC) #30
reed1
https://codereview.chromium.org/23021015/diff/66001/src/core/SkValidationUtils.h File src/core/SkValidationUtils.h (right): https://codereview.chromium.org/23021015/diff/66001/src/core/SkValidationUtils.h#newcode37 src/core/SkValidationUtils.h:37: ((rect.fLeft >= 0) || (rect.fRight <= 0) || Is ...
7 years, 3 months ago (2013-09-04 20:37:41 UTC) #31
sugoi1
On 2013/09/04 20:37:41, reed1 wrote: > https://codereview.chromium.org/23021015/diff/66001/src/core/SkValidationUtils.h > File src/core/SkValidationUtils.h (right): > > https://codereview.chromium.org/23021015/diff/66001/src/core/SkValidationUtils.h#newcode37 > ...
7 years, 3 months ago (2013-09-05 14:50:16 UTC) #32
reed1
On 2013/09/05 14:50:16, sugoi1 wrote: > On 2013/09/04 20:37:41, reed1 wrote: > > > https://codereview.chromium.org/23021015/diff/66001/src/core/SkValidationUtils.h ...
7 years, 3 months ago (2013-09-05 15:23:21 UTC) #33
sugoi1
On 2013/09/05 15:23:21, reed1 wrote: > On 2013/09/05 14:50:16, sugoi1 wrote: > > On 2013/09/04 ...
7 years, 3 months ago (2013-09-05 15:40:52 UTC) #34
reed1
On 2013/09/05 15:40:52, sugoi1 wrote: > On 2013/09/05 15:23:21, reed1 wrote: > > On 2013/09/05 ...
7 years, 3 months ago (2013-09-05 16:36:19 UTC) #35
sugoi1
On 2013/09/05 16:36:19, reed1 wrote: > On 2013/09/05 15:40:52, sugoi1 wrote: > > On 2013/09/05 ...
7 years, 3 months ago (2013-09-05 18:17:31 UTC) #36
reed1
On 2013/09/05 18:17:31, sugoi1 wrote: > On 2013/09/05 16:36:19, reed1 wrote: > > On 2013/09/05 ...
7 years, 3 months ago (2013-09-05 18:49:26 UTC) #37
sugoi1
On 2013/09/05 18:49:26, reed1 wrote: > On 2013/09/05 18:17:31, sugoi1 wrote: > > On 2013/09/05 ...
7 years, 3 months ago (2013-09-05 18:50:23 UTC) #38
sugoi1
Changed the SkRect/SkIRect validity tests for the simplified ones.
7 years, 3 months ago (2013-09-05 18:57:49 UTC) #39
reed1
header section lgtm adding senorblanco for the imagefilters https://codereview.chromium.org/23021015/diff/77001/include/core/SkRect.h File include/core/SkRect.h (right): https://codereview.chromium.org/23021015/diff/77001/include/core/SkRect.h#newcode101 include/core/SkRect.h:101: bool ...
7 years, 3 months ago (2013-09-05 19:06:38 UTC) #40
Stephen White
I like it. The changes to the serialization code in the subclasses are nice and ...
7 years, 3 months ago (2013-09-09 17:42:59 UTC) #41
Stephen White
LGTM
7 years, 3 months ago (2013-09-09 17:43:50 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/23021015/86001
7 years, 3 months ago (2013-09-10 14:25:35 UTC) #43
commit-bot: I haz the power
Change committed as 11247
7 years, 3 months ago (2013-09-13 12:39:51 UTC) #44
borenet
The Chrome canary bots are broken, and I think this change is to blame: http://173.255.115.253:10117/builders/Canary-Chrome-Ubuntu12-Ninja-x86_64-Default/builds/908 ...
7 years, 3 months ago (2013-09-13 15:08:37 UTC) #45
sugoi1
On 2013/09/13 15:08:37, borenet wrote: > The Chrome canary bots are broken, and I think ...
7 years, 3 months ago (2013-09-13 15:15:54 UTC) #46
reed1
[06:17:30.817668] FAILED: g++ -MMD -MF obj/content/common/content_common.cc_messages.o.d -DCONTENT_IMPLEMENTATION -DANGLE_DX11 -DWTF_VECTOR_INITIAL_SIZE=16 -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_NSS=1 -DUSE_X11=1 ...
7 years, 3 months ago (2013-09-13 15:16:31 UTC) #47
sugoi1
On 2013/09/13 15:16:31, reed1 wrote: > [06:17:30.817668] FAILED: g++ -MMD -MF > obj/content/common/content_common.cc_messages.o.d -DCONTENT_IMPLEMENTATION > ...
7 years, 3 months ago (2013-09-13 15:23:04 UTC) #48
reed1
If you're referring to the change to "Validating" in the api name.. I think that ...
7 years, 3 months ago (2013-09-13 15:28:09 UTC) #49
sugoi1
I reopened this issue because it had been reverted. The reason why it had been ...
7 years, 3 months ago (2013-09-18 15:14:03 UTC) #50
sugoi1
Oh yeah, there are a lot of changes, but the main changes are in : ...
7 years, 3 months ago (2013-09-18 15:16:18 UTC) #51
sugoi1
Before I forget, I'll add one more thing : I'm aware that an easier solution ...
7 years, 3 months ago (2013-09-18 18:30:43 UTC) #52
mtklein
Okay, I have a zillion comments. Don't be scared. I have a zillion comments because ...
7 years, 3 months ago (2013-09-24 22:52:17 UTC) #53
sugoi1
I quickly fixed anything that was trivial to fix and I tried to answer all ...
7 years, 2 months ago (2013-09-25 21:15:26 UTC) #54
sugoi1
Ok, here's the new version. Things to note : - Cleaned up SkArithmeticMode by removing ...
7 years, 2 months ago (2013-09-26 19:23:15 UTC) #55
sugoi1
Minor update: - Fixed windows warnings as errors (that was a bad merge on my ...
7 years, 2 months ago (2013-09-27 18:24:46 UTC) #56
sugoi1
I reverted the typedef changes that were put into https://codereview.chromium.org/25430005/ from this cl so that ...
7 years, 2 months ago (2013-10-02 17:19:14 UTC) #57
Stephen White
https://codereview.chromium.org/23021015/diff/132001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/132001/include/core/SkFlattenable.h#newcode60 include/core/SkFlattenable.h:60: /** For SkFlattenable derived objects defined outside of the ...
7 years, 2 months ago (2013-10-02 17:41:42 UTC) #58
sugoi1
https://codereview.chromium.org/23021015/diff/132001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/132001/include/core/SkFlattenable.h#newcode60 include/core/SkFlattenable.h:60: /** For SkFlattenable derived objects defined outside of the ...
7 years, 2 months ago (2013-10-02 19:59:32 UTC) #59
reed1
From 10K feet, I think I appreciate wanting to flag unflatten_flattenable with the desired/expected effect ...
7 years, 2 months ago (2013-10-03 08:41:08 UTC) #60
sugoi1
On 2013/10/03 08:41:08, reed1 wrote: > From 10K feet, I think I appreciate wanting to ...
7 years, 2 months ago (2013-10-03 14:58:23 UTC) #61
reed1
On 2013/10/03 14:58:23, sugoi1 wrote: > On 2013/10/03 08:41:08, reed1 wrote: > > From 10K ...
7 years, 2 months ago (2013-10-03 15:25:29 UTC) #62
sugoi1
On 2013/10/03 15:25:29, reed1 wrote: > Right. Why isn't that enough? I can see some ...
7 years, 2 months ago (2013-10-03 15:53:05 UTC) #63
reed1
On 2013/10/03 15:53:05, sugoi1 wrote: > On 2013/10/03 15:25:29, reed1 wrote: > > Right. Why ...
7 years, 2 months ago (2013-10-03 15:59:11 UTC) #64
sugoi1
On 2013/10/03 15:59:11, reed1 wrote: > On 2013/10/03 15:53:05, sugoi1 wrote: > > On 2013/10/03 ...
7 years, 2 months ago (2013-10-03 18:49:06 UTC) #65
Stephen White
On 2013/10/03 18:49:06, sugoi1 wrote: > On 2013/10/03 15:59:11, reed1 wrote: > > On 2013/10/03 ...
7 years, 2 months ago (2013-10-04 14:38:07 UTC) #66
sugoi1
https://codereview.chromium.org/23021015/diff/150001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/150001/include/core/SkFlattenable.h#newcode44 include/core/SkFlattenable.h:44: return (strcmp(flattenable::GetName(), name) == 0) || INHERITED::IsA(name); \ These ...
7 years, 2 months ago (2013-10-07 15:54:07 UTC) #67
mtklein
Do you have someone from Chrome security you can loop in to vet this approach ...
7 years, 2 months ago (2013-10-07 19:29:54 UTC) #68
sugoi1
I've tried to upload it 3 times, but I keep getting this error : The ...
7 years, 2 months ago (2013-10-08 20:23:09 UTC) #69
sugoi1
I found a few minor things to fix in last night's cl. I also retried ...
7 years, 2 months ago (2013-10-09 14:29:56 UTC) #70
sugoi1
So this is my attempt at integrating Mike's cl into this one. Here's some extra ...
7 years, 2 months ago (2013-10-10 15:27:58 UTC) #71
sugoi1
Integrated the effect types into this cl. I forgot to send notes when I uploaded ...
7 years, 2 months ago (2013-10-15 18:12:24 UTC) #72
sugoi1
Here's the new version. https://codereview.chromium.org/23021015/diff/188001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/188001/include/core/SkFlattenable.h#newcode46 include/core/SkFlattenable.h:46: enum SkEffectType { I need ...
7 years, 2 months ago (2013-10-16 15:05:31 UTC) #73
reed1
https://codereview.chromium.org/23021015/diff/188001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/188001/include/core/SkFlattenable.h#newcode47 include/core/SkFlattenable.h:47: kInvalid_SkEffectType, Hmmm, that might be the right way. I ...
7 years, 2 months ago (2013-10-16 15:20:19 UTC) #74
sugoi1
https://codereview.chromium.org/23021015/diff/188001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/188001/include/core/SkFlattenable.h#newcode47 include/core/SkFlattenable.h:47: kInvalid_SkEffectType, On 2013/10/16 15:20:20, reed1 wrote: > Hmmm, that ...
7 years, 2 months ago (2013-10-16 15:36:24 UTC) #75
mtklein
I think I'm getting down to small enough things that I could be swayed to ...
7 years, 2 months ago (2013-10-16 18:54:08 UTC) #76
sugoi1
https://codereview.chromium.org/23021015/diff/195001/gyp/core.gypi File gyp/core.gypi (right): https://codereview.chromium.org/23021015/diff/195001/gyp/core.gypi#newcode170 gyp/core.gypi:170: '<(skia_src_path)/core/SkValidatingReadBuffer.cpp', On 2013/10/16 18:54:09, mtklein wrote: > Nit: this ...
7 years, 2 months ago (2013-10-16 20:07:40 UTC) #77
mtklein
https://codereview.chromium.org/23021015/diff/195001/src/ports/SkGlobalInitialization_default.cpp File src/ports/SkGlobalInitialization_default.cpp (right): https://codereview.chromium.org/23021015/diff/195001/src/ports/SkGlobalInitialization_default.cpp#newcode61 src/ports/SkGlobalInitialization_default.cpp:61: DEF_SK_ONCE(InitializeFlattenables, int*) { On 2013/10/16 20:07:41, sugoi1 wrote: > ...
7 years, 2 months ago (2013-10-16 20:09:39 UTC) #78
mtklein
On 2013/10/16 20:09:39, mtklein wrote: > https://codereview.chromium.org/23021015/diff/195001/src/ports/SkGlobalInitialization_default.cpp > File src/ports/SkGlobalInitialization_default.cpp (right): > > https://codereview.chromium.org/23021015/diff/195001/src/ports/SkGlobalInitialization_default.cpp#newcode61 > ...
7 years, 2 months ago (2013-10-16 20:18:06 UTC) #79
Stephen White
https://codereview.chromium.org/23021015/diff/205001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/205001/include/core/SkFlattenable.h#newcode47 include/core/SkFlattenable.h:47: enum SkEffectType { Just to bikeshed a little, is ...
7 years, 2 months ago (2013-10-16 20:27:23 UTC) #80
reed1
https://codereview.chromium.org/23021015/diff/205001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/205001/include/core/SkFlattenable.h#newcode47 include/core/SkFlattenable.h:47: enum SkEffectType { On 2013/10/16 20:27:24, Stephen White wrote: ...
7 years, 2 months ago (2013-10-16 20:38:14 UTC) #81
sugoi1
- Changed SkEffectType -> SkFlattenable::Type. Back to the original name, it should be simple and ...
7 years, 2 months ago (2013-10-17 15:20:38 UTC) #82
Stephen White
https://codereview.chromium.org/23021015/diff/217001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/217001/include/core/SkFlattenable.h#newcode42 include/core/SkFlattenable.h:42: static Type GetType() { \ +1 for the scoped ...
7 years, 2 months ago (2013-10-17 15:27:54 UTC) #83
sugoi1
https://codereview.chromium.org/23021015/diff/217001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/217001/include/core/SkFlattenable.h#newcode42 include/core/SkFlattenable.h:42: static Type GetType() { \ On 2013/10/17 15:27:56, Stephen ...
7 years, 2 months ago (2013-10-17 15:33:53 UTC) #84
sugoi1
Removed the SkGPipeRead changes in an effort to finally land this cl.
7 years, 2 months ago (2013-10-21 14:57:57 UTC) #85
reed1
just naming nit. are there other comments? https://codereview.chromium.org/23021015/diff/269001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/269001/include/core/SkFlattenable.h#newcode56 include/core/SkFlattenable.h:56: kSkColorFilter_Type, If ...
7 years, 2 months ago (2013-10-21 20:54:47 UTC) #86
reed1
are we in a position with this CL to write tests that exercise/trigger the error ...
7 years, 2 months ago (2013-10-21 20:55:29 UTC) #87
mtklein
lgtm https://codereview.chromium.org/23021015/diff/269001/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/23021015/diff/269001/include/core/SkFlattenable.h#newcode56 include/core/SkFlattenable.h:56: kSkColorFilter_Type, On 2013/10/21 20:54:48, reed1 wrote: > If ...
7 years, 2 months ago (2013-10-21 21:12:32 UTC) #88
Stephen White
https://codereview.chromium.org/23021015/diff/269001/src/core/SkBitmap.cpp File src/core/SkBitmap.cpp (right): https://codereview.chromium.org/23021015/diff/269001/src/core/SkBitmap.cpp#newcode1614 src/core/SkBitmap.cpp:1614: this->setIsOpaque(buffer.readBool()); Where is this bool written? I don't see ...
7 years, 2 months ago (2013-10-21 21:22:36 UTC) #89
scroggo
https://codereview.chromium.org/23021015/diff/269001/src/core/SkBitmap.cpp File src/core/SkBitmap.cpp (right): https://codereview.chromium.org/23021015/diff/269001/src/core/SkBitmap.cpp#newcode1614 src/core/SkBitmap.cpp:1614: this->setIsOpaque(buffer.readBool()); On 2013/10/21 21:22:37, Stephen White wrote: > Where ...
7 years, 2 months ago (2013-10-21 21:37:21 UTC) #90
sugoi1
On 2013/10/21 20:55:29, reed1 wrote: > are we in a position with this CL to ...
7 years, 2 months ago (2013-10-22 12:09:55 UTC) #91
sugoi1
On 2013/10/21 21:37:21, scroggo wrote: > https://codereview.chromium.org/23021015/diff/269001/src/core/SkBitmap.cpp > File src/core/SkBitmap.cpp (right): > > https://codereview.chromium.org/23021015/diff/269001/src/core/SkBitmap.cpp#newcode1614 > ...
7 years, 2 months ago (2013-10-22 12:12:09 UTC) #92
sugoi1
https://codereview.chromium.org/23021015/diff/269001/include/core/SkFlattenableBuffers.h File include/core/SkFlattenableBuffers.h (right): https://codereview.chromium.org/23021015/diff/269001/include/core/SkFlattenableBuffers.h#newcode137 include/core/SkFlattenableBuffers.h:137: template <typename T> T* readFlattenableT(); On 2013/10/21 20:54:48, reed1 ...
7 years, 2 months ago (2013-10-22 12:12:53 UTC) #93
reed1
lgtm
7 years, 2 months ago (2013-10-23 16:13:28 UTC) #94
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/23021015/769001
7 years, 2 months ago (2013-10-23 16:37:08 UTC) #95
commit-bot: I haz the power
7 years, 2 months ago (2013-10-23 17:06:36 UTC) #96
Message was sent while issue was closed.
Change committed as 11922

Powered by Google App Engine
This is Rietveld 408576698