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

Side by Side Diff: experimental/PdfViewer/SkPdfConfig.h

Issue 23601017: pdfviewer: track what objects have been used during rendering. It will be the base of reporting unu… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.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 2013 Google Inc. 2 * Copyright 2013 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 #ifndef SkPdfConfig_DEFINED 8 #ifndef SkPdfConfig_DEFINED
9 #define SkPdfConfig_DEFINED 9 #define SkPdfConfig_DEFINED
10 10
11 #define PDF_TRACK_OBJECT_USAGE
12 //#define PDF_TRACK_STREAM_OFFSETS
11 //#define PDF_TRACE 13 //#define PDF_TRACE
12 //#define PDF_TRACE_READ_TOKEN 14 //#define PDF_TRACE_READ_TOKEN
13 //#define PDF_TRACE_DRAWTEXT 15 //#define PDF_TRACE_DRAWTEXT
14 //#define PDF_TRACE_DIFF_IN_PNG 16 //#define PDF_TRACE_DIFF_IN_PNG
15 //#define PDF_DEBUG_NO_CLIPING 17 //#define PDF_DEBUG_NO_CLIPING
16 //#define PDF_DEBUG_NO_PAGE_CLIPING 18 //#define PDF_DEBUG_NO_PAGE_CLIPING
17 //#define PDF_DEBUG_3X 19 //#define PDF_DEBUG_3X
18 20
21
22 // TODO(edisonn): pass a flag to say how it was used? e.g. asked the type? Obtai ned value?
23 // Implement it when it will be needed the first time to fix some bug.
24 #ifdef PDF_TRACK_OBJECT_USAGE
25 #define SkPdfMarkObjectUsed() fUsed = true
26 #else
27 #define SkPdfMarkObjectUsed()
28 #endif // PDF_TRACK_OBJECT_USAGE
29
30 #ifdef PDF_TRACK_OBJECT_USAGE
31 #define SkPdfMarkObjectUnused() fUsed = false
32 #else
33 #define SkPdfMarkObjectUnused()
34 #endif // PDF_TRACK_OBJECT_USAGE
35
19 #endif // SkPdfConfig_DEFINED 36 #endif // SkPdfConfig_DEFINED
OLDNEW
« no previous file with comments | « no previous file | experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698