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

Side by Side Diff: gm/cmykjpeg.cpp

Issue 281383013: skiagm::make_isize -> SkISize::Make (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | « gm/circles.cpp ('k') | gm/coloremoji.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 Google Inc. 2 * Copyright 2012 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 "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkImageDecoder.h" 10 #include "SkImageDecoder.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 SkImageDecoder::kDecodePixels_Mode); 47 SkImageDecoder::kDecodePixels_Mode);
48 SkDELETE(codec); 48 SkDELETE(codec);
49 } 49 }
50 } 50 }
51 51
52 virtual SkString onShortName() { 52 virtual SkString onShortName() {
53 return SkString("cmykjpeg"); 53 return SkString("cmykjpeg");
54 } 54 }
55 55
56 virtual SkISize onISize() { 56 virtual SkISize onISize() {
57 return make_isize(640, 480); 57 return SkISize::Make(640, 480);
58 } 58 }
59 59
60 virtual void onDraw(SkCanvas* canvas) { 60 virtual void onDraw(SkCanvas* canvas) {
61 61
62 canvas->translate(20*SK_Scalar1, 20*SK_Scalar1); 62 canvas->translate(20*SK_Scalar1, 20*SK_Scalar1);
63 canvas->drawBitmap(fBitmap, 0, 0); 63 canvas->drawBitmap(fBitmap, 0, 0);
64 } 64 }
65 65
66 private: 66 private:
67 SkBitmap fBitmap; 67 SkBitmap fBitmap;
68 68
69 typedef GM INHERITED; 69 typedef GM INHERITED;
70 }; 70 };
71 71
72 ////////////////////////////////////////////////////////////////////////////// 72 //////////////////////////////////////////////////////////////////////////////
73 73
74 static GM* MyFactory(void*) { return new CMYKJpegGM; } 74 static GM* MyFactory(void*) { return new CMYKJpegGM; }
75 static GMRegistry reg(MyFactory); 75 static GMRegistry reg(MyFactory);
76 76
77 } 77 }
OLDNEW
« no previous file with comments | « gm/circles.cpp ('k') | gm/coloremoji.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698