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

Side by Side Diff: gm/scaledstrokes.cpp

Issue 1873733003: More cleanup in the Vulkan viewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments 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 | « no previous file | tools/vulkan/Window.h » ('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 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkRRect.h" 10 #include "SkRRect.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 canvas->restore(); 66 canvas->restore();
67 67
68 canvas->save(); 68 canvas->save();
69 canvas->translate(0.0f, 240.0f); 69 canvas->translate(0.0f, 240.0f);
70 canvas->scale(scale, scale); 70 canvas->scale(scale, scale);
71 canvas->drawLine(0.0f, 0.0f, size / scale, size / scale, paint); 71 canvas->drawLine(0.0f, 0.0f, size / scale, size / scale, paint);
72 canvas->restore(); 72 canvas->restore();
73 73
74 canvas->translate(80.0f, 0.0f); 74 canvas->translate(80.0f, 0.0f);
75 } 75 }
76 canvas->restore();
76 } 77 }
77 78
78 } 79 }
79 80
80 private: 81 private:
81 typedef GM INHERITED; 82 typedef GM INHERITED;
82 }; 83 };
83 84
84 DEF_GM( return new ScaledStrokesGM; ) 85 DEF_GM( return new ScaledStrokesGM; )
OLDNEW
« no previous file with comments | « no previous file | tools/vulkan/Window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698