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

Side by Side Diff: samplecode/SampleUnpremul.cpp

Issue 346453002: Refactor how we handle resources path in Tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix rebase conflict Created 6 years, 6 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/SampleSubpixelTranslate.cpp ('k') | tests/FontHostTest.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 2013 Google Inc. 2 * Copyright 2013 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
10 #include "Resources.h"
9 #include "SampleCode.h" 11 #include "SampleCode.h"
10 #include "SkBlurMask.h" 12 #include "SkBlurMask.h"
11 #include "SkBlurDrawLooper.h" 13 #include "SkBlurDrawLooper.h"
12 #include "SkCanvas.h" 14 #include "SkCanvas.h"
13 #include "SkColorPriv.h" 15 #include "SkColorPriv.h"
14 #include "SkForceLinking.h" 16 #include "SkForceLinking.h"
15 #include "SkImageDecoder.h" 17 #include "SkImageDecoder.h"
16 #include "SkOSFile.h" 18 #include "SkOSFile.h"
17 #include "SkStream.h" 19 #include "SkStream.h"
18 #include "SkString.h" 20 #include "SkString.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 fPremul = !fPremul; 194 fPremul = !fPremul;
193 this->decodeCurrFile(); 195 this->decodeCurrFile();
194 } 196 }
195 197
196 typedef SampleView INHERITED; 198 typedef SampleView INHERITED;
197 }; 199 };
198 200
199 ////////////////////////////////////////////////////////////////////////////// 201 //////////////////////////////////////////////////////////////////////////////
200 202
201 static SkView* MyFactory() { 203 static SkView* MyFactory() {
202 return new UnpremulView(skiagm::GM::GetResourcePath()); 204 return new UnpremulView(GetResourcePath());
203 } 205 }
204 static SkViewRegister reg(MyFactory); 206 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « samplecode/SampleSubpixelTranslate.cpp ('k') | tests/FontHostTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698