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

Side by Side Diff: gm/colorcube.cpp

Issue 1363913002: Remove SkBitmapSource (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 "SkColorCubeFilter.h" 9 #include "SkColorCubeFilter.h"
10 #include "SkBitmapSource.h"
11 #include "SkData.h" 10 #include "SkData.h"
12 #include "SkGradientShader.h" 11 #include "SkGradientShader.h"
13 12
14 namespace skiagm { 13 namespace skiagm {
15 14
16 static SkShader* MakeLinear() { 15 static SkShader* MakeLinear() {
17 static const SkPoint pts[2] = { 16 static const SkPoint pts[2] = {
18 { 0, 0 }, 17 { 0, 0 },
19 { SkIntToScalar(80), SkIntToScalar(80) } 18 { SkIntToScalar(80), SkIntToScalar(80) }
20 }; 19 };
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 SkData* f3DLut32; 132 SkData* f3DLut32;
134 SkData* f3DLut64; 133 SkData* f3DLut64;
135 }; 134 };
136 135
137 ////////////////////////////////////////////////////////////////////////////// 136 //////////////////////////////////////////////////////////////////////////////
138 137
139 static GM* MyFactory(void*) { return new ColorCubeGM; } 138 static GM* MyFactory(void*) { return new ColorCubeGM; }
140 static GMRegistry reg(MyFactory); 139 static GMRegistry reg(MyFactory);
141 140
142 } 141 }
OLDNEW
« no previous file with comments | « gm/bitmapsource.cpp ('k') | gm/filterfastbounds.cpp » ('j') | gm/imagefilterstransformed.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698