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

Side by Side Diff: gm/skbug_4868.cpp

Issue 1720863003: SkPDF: fix scalar serialization (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: refactor, clean Created 4 years, 10 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 | src/pdf/SkPDFUtils.h » ('j') | src/pdf/SkPDFUtils.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "gm.h"
9
10 DEF_SIMPLE_GM(skbug_4868, canvas, 32, 32) {
tomhudson 2016/02/24 20:10:56 It's pretty clear that there was misunderstanding
11 canvas->translate(-68.0f, -3378.0f);
12 SkPaint paint;
13 paint.setAntiAlias(true);
14 paint.setStyle(SkPaint::kStroke_Style);
15 canvas->scale(0.56692914f, 0.56692914f);
16 SkRect rc = SkRect::MakeLTRB(158.0f, 5994.80273f, 165.0f, 5998.80225f);
17 canvas->clipRect(rc);
18 canvas->clear(0xFFCECFCE);
19 canvas->drawLine(rc.left(), rc.top(), rc.right(), rc.bottom(), paint);
20 canvas->drawLine(rc.right(), rc.top(), rc.left(), rc.bottom(), paint);
21 }
OLDNEW
« no previous file with comments | « no previous file | src/pdf/SkPDFUtils.h » ('j') | src/pdf/SkPDFUtils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698