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

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

Issue 22269002: pdfviewer: debug code for crash (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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/SkPdfRenderer.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 #ifndef __DEFINED__SkPdfBasics 1 #ifndef __DEFINED__SkPdfBasics
2 #define __DEFINED__SkPdfBasics 2 #define __DEFINED__SkPdfBasics
3 3
4 #include "SkCanvas.h" 4 #include "SkCanvas.h"
5 #include "SkPaint.h" 5 #include "SkPaint.h"
6 #include "SkPdfConfig.h" 6 #include "SkPdfConfig.h"
7 7
8 #include <iostream> 8 #include <iostream>
9 #include <cstdio> 9 #include <cstdio>
10 #include <map> 10 #include <map>
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 fSkFont = NULL; 343 fSkFont = NULL;
344 fLineCap = 0; 344 fLineCap = 0;
345 fLineJoin = 0; 345 fLineJoin = 0;
346 fMiterLimit = 10.0; 346 fMiterLimit = 10.0;
347 fAphaConstant = 1.0; 347 fAphaConstant = 1.0;
348 fAlphaSource = false; 348 fAlphaSource = false;
349 fDashArrayLength = 0; 349 fDashArrayLength = 0;
350 fDashPhase = 0; 350 fDashPhase = 0;
351 fBlendModesLength = 1; 351 fBlendModesLength = 1;
352 fBlendModes[0] = SkXfermode::kSrc_Mode; // PDF: Normal Blend mode 352 fBlendModes[0] = SkXfermode::kSrc_Mode; // PDF: Normal Blend mode
353 fSMask = NULL;
353 } 354 }
354 355
355 // TODO(edisonn): make two functons instead, stroking and non stoking, avoid branching 356 // TODO(edisonn): make two functons instead, stroking and non stoking, avoid branching
356 void applyGraphicsState(SkPaint* paint, bool stroking); 357 void applyGraphicsState(SkPaint* paint, bool stroking);
357 }; 358 };
358 359
359 // TODO(edisonn): better class design. 360 // TODO(edisonn): better class design.
360 // TODO(edisonn): could we remove it? 361 // TODO(edisonn): could we remove it?
361 // TODO(edisonn): rename to SkPdfInlineImage 362 // TODO(edisonn): rename to SkPdfInlineImage
362 struct SkPdfInlineImage { 363 struct SkPdfInlineImage {
(...skipping 25 matching lines...) Expand all
388 kPartial_PdfResult, 389 kPartial_PdfResult,
389 kNYI_PdfResult, 390 kNYI_PdfResult,
390 kIgnoreError_PdfResult, 391 kIgnoreError_PdfResult,
391 kError_PdfResult, 392 kError_PdfResult,
392 kUnsupported_PdfResult, 393 kUnsupported_PdfResult,
393 394
394 kCount_PdfResult 395 kCount_PdfResult
395 }; 396 };
396 397
397 #endif // __DEFINED__SkPdfBasics 398 #endif // __DEFINED__SkPdfBasics
OLDNEW
« no previous file with comments | « no previous file | experimental/PdfViewer/SkPdfRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698