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

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

Issue 83343003: Adding more validation (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fixed comments Created 7 years 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/SkColorFilterImageFilter.cpp ('k') | src/effects/SkDisplacementMapEffect.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkComposeImageFilter.h" 9 #include "SkComposeImageFilter.h"
10 #include "SkFlattenableBuffers.h" 10 #include "SkFlattenableBuffers.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 if (!outer || !inner) { 46 if (!outer || !inner) {
47 return (outer ? outer : inner)->filterBounds(src, ctm, dst); 47 return (outer ? outer : inner)->filterBounds(src, ctm, dst);
48 } 48 }
49 49
50 SkIRect tmp; 50 SkIRect tmp;
51 return inner->filterBounds(src, ctm, &tmp) && 51 return inner->filterBounds(src, ctm, &tmp) &&
52 outer->filterBounds(tmp, ctm, dst); 52 outer->filterBounds(tmp, ctm, dst);
53 } 53 }
54 54
55 SkComposeImageFilter::SkComposeImageFilter(SkFlattenableReadBuffer& buffer) : IN HERITED(buffer) { 55 SkComposeImageFilter::SkComposeImageFilter(SkFlattenableReadBuffer& buffer)
56 : INHERITED(2, buffer) {
56 } 57 }
OLDNEW
« no previous file with comments | « src/effects/SkColorFilterImageFilter.cpp ('k') | src/effects/SkDisplacementMapEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698