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

Side by Side Diff: gm/filterfastbounds.cpp

Issue 1184123002: Revert of make gm background colors 565 compatible (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « gm/filterbitmap.cpp ('k') | gm/filterindiabox.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 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 "SkBitmapSource.h" 9 #include "SkBitmapSource.h"
10 #include "SkBlurImageFilter.h" 10 #include "SkBlurImageFilter.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 add_paint(oif, paints); 144 add_paint(oif, paints);
145 } 145 }
146 } 146 }
147 147
148 // This GM visualizes the fast bounds for various combinations of geometry 148 // This GM visualizes the fast bounds for various combinations of geometry
149 // and image filter 149 // and image filter
150 class ImageFilterFastBoundGM : public GM { 150 class ImageFilterFastBoundGM : public GM {
151 public: 151 public:
152 ImageFilterFastBoundGM() { 152 ImageFilterFastBoundGM() {
153 this->setBGColor(sk_tool_utils::color_to_565(0xFFCCCCCC)); 153 this->setBGColor(0xFFCCCCCC);
154 } 154 }
155 155
156 protected: 156 protected:
157 static const int kTileWidth = 100; 157 static const int kTileWidth = 100;
158 static const int kTileHeight = 100; 158 static const int kTileHeight = 100;
159 static const int kNumVertTiles = 6; 159 static const int kNumVertTiles = 6;
160 static const int kNumXtraCols = 2; 160 static const int kNumXtraCols = 2;
161 161
162 SkString onShortName() override{ return SkString("filterfastbounds"); } 162 SkString onShortName() override{ return SkString("filterfastbounds"); }
163 163
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 private: 318 private:
319 typedef GM INHERITED; 319 typedef GM INHERITED;
320 }; 320 };
321 321
322 ////////////////////////////////////////////////////////////////////////////// 322 //////////////////////////////////////////////////////////////////////////////
323 323
324 DEF_GM(return SkNEW(ImageFilterFastBoundGM);) 324 DEF_GM(return SkNEW(ImageFilterFastBoundGM);)
325 325
326 } 326 }
OLDNEW
« no previous file with comments | « gm/filterbitmap.cpp ('k') | gm/filterindiabox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698