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

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

Issue 306733003: Implement SkPictureImageFilter bounds computation. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Cleanup Created 6 years, 6 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 | « include/effects/SkPictureImageFilter.h ('k') | tests/ImageFilterTest.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 The Android Open Source Project 2 * Copyright 2013 The Android Open Source Project
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 "SkPictureImageFilter.h" 8 #include "SkPictureImageFilter.h"
9 #include "SkDevice.h" 9 #include "SkDevice.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 canvas.translate(-SkIntToScalar(bounds.fLeft), -SkIntToScalar(bounds.fTop)); 86 canvas.translate(-SkIntToScalar(bounds.fLeft), -SkIntToScalar(bounds.fTop));
87 canvas.concat(ctx.ctm()); 87 canvas.concat(ctx.ctm());
88 canvas.drawPicture(*fPicture); 88 canvas.drawPicture(*fPicture);
89 89
90 *result = device.get()->accessBitmap(false); 90 *result = device.get()->accessBitmap(false);
91 offset->fX = bounds.fLeft; 91 offset->fX = bounds.fLeft;
92 offset->fY = bounds.fTop; 92 offset->fY = bounds.fTop;
93 return true; 93 return true;
94 } 94 }
95
96 bool SkPictureImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ct m,
97 SkIRect* dst) const {
98 *dst = src;
reed1 2014/05/30 20:10:20 Why are we not applying the CTM?
99 return true;
100 }
101
OLDNEW
« no previous file with comments | « include/effects/SkPictureImageFilter.h ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698