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

Side by Side Diff: tests/PDFPrimitivesTest.cpp

Issue 1120023003: Refugee from Dead Machine 13: New version of the convex AA tessellator Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 7 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 | « src/gpu/GrAARectRenderer.cpp ('k') | no next file » | 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 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkData.h" 10 #include "SkData.h"
11 #include "SkDocument.h" 11 #include "SkDocument.h"
12 #include "SkFlate.h" 12 #include "SkFlate.h"
13 #include "SkImageEncoder.h" 13 #include "SkImageEncoder.h"
14 #include "SkMatrix.h" 14 #include "SkMatrix.h"
15 #include "SkPDFCanon.h" 15 #include "SkPDFCanon.h"
16 #include "SkPDFDevice.h" 16 #include "SkPDFDevice.h"
17 #include "SkPDFStream.h" 17 #include "SkPDFStream.h"
18 #include "SkPDFTypes.h" 18 #include "SkPDFTypes.h"
19 #include "SkReadBuffer.h" 19 #include "SkReadBuffer.h"
20 #include "SkScalar.h" 20 #include "SkScalar.h"
21 #include "SkStream.h" 21 #include "SkStream.h"
22 #include "SkTypes.h" 22 #include "SkTypes.h"
23 #include "Test.h" 23 #include "Test.h"
24 24
25 #if 0
25 #define DUMMY_TEXT "DCT compessed stream." 26 #define DUMMY_TEXT "DCT compessed stream."
26 27
27 namespace { 28 namespace {
28 struct Catalog { 29 struct Catalog {
29 SkPDFSubstituteMap substitutes; 30 SkPDFSubstituteMap substitutes;
30 SkPDFObjNumMap numbers; 31 SkPDFObjNumMap numbers;
31 }; 32 };
32 } // namespace 33 } // namespace
33 34
34 template <typename T> 35 template <typename T>
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // Filter just created; should be unvisited. 407 // Filter just created; should be unvisited.
407 REPORTER_ASSERT(reporter, !filter->visited()); 408 REPORTER_ASSERT(reporter, !filter->visited());
408 SkPaint paint; 409 SkPaint paint;
409 paint.setImageFilter(filter.get()); 410 paint.setImageFilter(filter.get());
410 canvas->drawRect(SkRect::MakeWH(100, 100), paint); 411 canvas->drawRect(SkRect::MakeWH(100, 100), paint);
411 doc->close(); 412 doc->close();
412 413
413 // Filter was used in rendering; should be visited. 414 // Filter was used in rendering; should be visited.
414 REPORTER_ASSERT(reporter, filter->visited()); 415 REPORTER_ASSERT(reporter, filter->visited());
415 } 416 }
417 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698