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

Side by Side Diff: gm/draw_bitmap_rect_skbug4374.cpp

Issue 1432503003: Comments Style: s/skbug.com/bug.skia.org/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: include Created 5 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 | « gm/cubicpaths.cpp ('k') | gm/imagefilters.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 2015 Google Inc. 2 * Copyright 2015 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 #include "Resources.h" 7 #include "Resources.h"
8 #include "gm.h" 8 #include "gm.h"
9 // http://skbug.com/4374 9 // https://bug.skia.org/4374
10 DEF_SIMPLE_GM(draw_bitmap_rect_skbug4734, canvas, 64, 64) { 10 DEF_SIMPLE_GM(draw_bitmap_rect_skbug4734, canvas, 64, 64) {
11 SkBitmap source; 11 SkBitmap source;
12 if (GetResourceAsBitmap("randPixels.png", &source)) { 12 if (GetResourceAsBitmap("randPixels.png", &source)) {
13 SkRect rect = SkRect::Make(source.bounds()); 13 SkRect rect = SkRect::Make(source.bounds());
14 rect.inset(0.5, 1.5); 14 rect.inset(0.5, 1.5);
15 SkRect dst; 15 SkRect dst;
16 SkMatrix::MakeScale(8.0f).mapRect(&dst, rect); 16 SkMatrix::MakeScale(8.0f).mapRect(&dst, rect);
17 canvas->drawBitmapRect(source, rect, dst, nullptr); 17 canvas->drawBitmapRect(source, rect, dst, nullptr);
18 } 18 }
19 } 19 }
OLDNEW
« no previous file with comments | « gm/cubicpaths.cpp ('k') | gm/imagefilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698