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

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

Issue 681643003: Fix bounds computation of all 0-input filters. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 6 years, 1 month 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
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | src/effects/SkPictureImageFilter.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 2012 The Android Open Source Project 2 * Copyright 2012 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 "SkBitmapSource.h" 8 #include "SkBitmapSource.h"
9 #include "SkDevice.h" 9 #include "SkDevice.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 *result = device.get()->accessBitmap(false); 91 *result = device.get()->accessBitmap(false);
92 offset->fX = dstIRect.fLeft; 92 offset->fX = dstIRect.fLeft;
93 offset->fY = dstIRect.fTop; 93 offset->fY = dstIRect.fTop;
94 return true; 94 return true;
95 } 95 }
96 96
97 void SkBitmapSource::computeFastBounds(const SkRect&, SkRect* dst) const { 97 void SkBitmapSource::computeFastBounds(const SkRect&, SkRect* dst) const {
98 *dst = fDstRect; 98 *dst = fDstRect;
99 } 99 }
100
101 bool SkBitmapSource::onFilterBounds(const SkIRect& src, const SkMatrix& ctm,
102 SkIRect* dst) const {
103 *dst = src;
104 return true;
105 }
OLDNEW
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | src/effects/SkPictureImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698