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

Side by Side Diff: samplecode/SampleRegion.cpp

Issue 1812323003: Remove uses of SkImageDecoder from samplecode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « samplecode/SamplePoints.cpp ('k') | samplecode/SampleShaders.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 2011 Google Inc. 2 * Copyright 2011 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 "SampleCode.h" 8 #include "SampleCode.h"
9 #include "SkView.h" 9 #include "SkView.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
11 #include "SkGradientShader.h" 11 #include "SkGradientShader.h"
12 #include "SkPath.h" 12 #include "SkPath.h"
13 #include "SkRegion.h" 13 #include "SkRegion.h"
14 #include "SkShader.h" 14 #include "SkShader.h"
15 #include "SkUtils.h" 15 #include "SkUtils.h"
16 #include "SkImageDecoder.h"
17 16
18 #include <math.h> 17 #include <math.h>
19 18
20 static void test_strokerect(SkCanvas* canvas) { 19 static void test_strokerect(SkCanvas* canvas) {
21 int width = 100; 20 int width = 100;
22 int height = 100; 21 int height = 100;
23 22
24 SkBitmap bitmap; 23 SkBitmap bitmap;
25 bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2)); 24 bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2));
26 bitmap.eraseColor(SK_ColorTRANSPARENT); 25 bitmap.eraseColor(SK_ColorTRANSPARENT);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 private: 402 private:
404 SkIRect fBase, fRect; 403 SkIRect fBase, fRect;
405 404
406 typedef SampleView INHERITED; 405 typedef SampleView INHERITED;
407 }; 406 };
408 407
409 ////////////////////////////////////////////////////////////////////////////// 408 //////////////////////////////////////////////////////////////////////////////
410 409
411 static SkView* MyFactory() { return new RegionView; } 410 static SkView* MyFactory() { return new RegionView; }
412 static SkViewRegister reg(MyFactory); 411 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « samplecode/SamplePoints.cpp ('k') | samplecode/SampleShaders.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698