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

Side by Side Diff: src/effects/SkTestImageFilters.cpp

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Adapting code to sk_once changes Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/effects/SkOffsetImageFilter.cpp ('k') | src/effects/SkTileImageFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 #include "SkTestImageFilters.h" 2 #include "SkTestImageFilters.h"
3 #include "SkCanvas.h" 3 #include "SkCanvas.h"
4 #include "SkDevice.h" 4 #include "SkDevice.h"
5 #include "SkFlattenableBuffers.h" 5 #include "SkFlattenableBuffers.h"
6 6
7 // Simple helper canvas that "takes ownership" of the provided device, so that 7 // Simple helper canvas that "takes ownership" of the provided device, so that
8 // when this canvas goes out of scope, so will its device. Could be replaced 8 // when this canvas goes out of scope, so will its device. Could be replaced
9 // with the following: 9 // with the following:
10 // 10 //
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 void SkDownSampleImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const { 73 void SkDownSampleImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const {
74 this->INHERITED::flatten(buffer); 74 this->INHERITED::flatten(buffer);
75 75
76 buffer.writeScalar(fScale); 76 buffer.writeScalar(fScale);
77 } 77 }
78 78
79 SkDownSampleImageFilter::SkDownSampleImageFilter(SkFlattenableReadBuffer& buffer ) : INHERITED(buffer) { 79 SkDownSampleImageFilter::SkDownSampleImageFilter(SkFlattenableReadBuffer& buffer ) : INHERITED(buffer) {
80 fScale = buffer.readScalar(); 80 fScale = buffer.readScalar();
81 buffer.validate(SkScalarIsFinite(fScale));
81 } 82 }
OLDNEW
« no previous file with comments | « src/effects/SkOffsetImageFilter.cpp ('k') | src/effects/SkTileImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698