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

Side by Side Diff: gm/textblobmixedsizes.cpp

Issue 1876753003: adjust gm bounds for better content fit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/tallstretchedbitmaps.cpp ('k') | gm/tilemodes.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 2015 Google Inc. 2 * Copyright 2015 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 9
10 #include "Resources.h" 10 #include "Resources.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // since we prepended this matrix already, we blit using identity 174 // since we prepended this matrix already, we blit using identity
175 inputCanvas->resetMatrix(); 175 inputCanvas->resetMatrix();
176 inputCanvas->drawImage(surface->makeImageSnapshot().get(), 0, 0, nul lptr); 176 inputCanvas->drawImage(surface->makeImageSnapshot().get(), 0, 0, nul lptr);
177 } 177 }
178 #endif 178 #endif
179 } 179 }
180 180
181 private: 181 private:
182 SkAutoTUnref<const SkTextBlob> fBlob; 182 SkAutoTUnref<const SkTextBlob> fBlob;
183 183
184 static const int kWidth = 2000; 184 static const int kWidth = 2100;
185 static const int kHeight = 2000; 185 static const int kHeight = 1900;
186 186
187 bool fUseDFT; 187 bool fUseDFT;
188 188
189 typedef GM INHERITED; 189 typedef GM INHERITED;
190 }; 190 };
191 191
192 ////////////////////////////////////////////////////////////////////////////// 192 //////////////////////////////////////////////////////////////////////////////
193 193
194 DEF_GM( return new TextBlobMixedSizes(false); ) 194 DEF_GM( return new TextBlobMixedSizes(false); )
195 #if SK_SUPPORT_GPU 195 #if SK_SUPPORT_GPU
196 DEF_GM( return new TextBlobMixedSizes(true); ) 196 DEF_GM( return new TextBlobMixedSizes(true); )
197 #endif 197 #endif
198 } 198 }
OLDNEW
« no previous file with comments | « gm/tallstretchedbitmaps.cpp ('k') | gm/tilemodes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698