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

Side by Side Diff: gm/displacement.cpp

Issue 1020103005: Preserve texture compression when saving a revised skp from debugger (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up Created 5 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 | « gm/colorwheel.cpp ('k') | tests/PictureTest.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 "sk_tool_utils.h"
9 #include "SkBitmapSource.h" 8 #include "SkBitmapSource.h"
10 #include "SkDisplacementMapEffect.h" 9 #include "SkDisplacementMapEffect.h"
11 #include "gm.h" 10 #include "gm.h"
11 #include "sk_tool_utils.h"
12 12
13 namespace skiagm { 13 namespace skiagm {
14 14
15 class DisplacementMapGM : public GM { 15 class DisplacementMapGM : public GM {
16 public: 16 public:
17 DisplacementMapGM() : fInitialized(false) { 17 DisplacementMapGM() : fInitialized(false) {
18 this->setBGColor(0xFF000000); 18 this->setBGColor(0xFF000000);
19 } 19 }
20 20
21 protected: 21 protected:
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 SkBitmap fBitmap, fCheckerboard, fSmall, fLarge, fLargeW, fLargeH; 207 SkBitmap fBitmap, fCheckerboard, fSmall, fLarge, fLargeW, fLargeH;
208 bool fInitialized; 208 bool fInitialized;
209 }; 209 };
210 210
211 ////////////////////////////////////////////////////////////////////////////// 211 //////////////////////////////////////////////////////////////////////////////
212 212
213 static GM* MyFactory(void*) { return new DisplacementMapGM; } 213 static GM* MyFactory(void*) { return new DisplacementMapGM; }
214 static GMRegistry reg(MyFactory); 214 static GMRegistry reg(MyFactory);
215 215
216 } 216 }
OLDNEW
« no previous file with comments | « gm/colorwheel.cpp ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698