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

Unified Diff: experimental/PdfViewer/SkPdfGraphicsState.cpp

Issue 1266093003: Remove experimental/PdfViewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-03 (Monday) 10:43:56 EDT Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/PdfViewer/SkPdfGraphicsState.h ('k') | experimental/PdfViewer/SkPdfReporter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkPdfGraphicsState.cpp
diff --git a/experimental/PdfViewer/SkPdfGraphicsState.cpp b/experimental/PdfViewer/SkPdfGraphicsState.cpp
deleted file mode 100644
index 76c4120fa33998f36449235c1228eacf3cbf827a..0000000000000000000000000000000000000000
--- a/experimental/PdfViewer/SkPdfGraphicsState.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "SkPdfGraphicsState.h"
-
-#include "SkDashPathEffect.h"
-
-void SkPdfGraphicsState::applyGraphicsState(SkPaint* paint, bool stroking) {
- if (stroking) {
- fStroking.applyGraphicsState(paint);
- } else {
- fNonStroking.applyGraphicsState(paint);
- }
-
- // TODO(edisonn): Perf, we should load this option from pdfContext->options,
- // or pdfContext->addPaintOptions(&paint);
- paint->setAntiAlias(true);
-
- // TODO(edisonn): miter, ...
- if (stroking) {
- paint->setStrokeWidth(SkDoubleToScalar(fLineWidth));
- // TODO(edisonn): perf, avoid allocs of the intervals
- if (fDashArrayLength > 0) {
- paint->setPathEffect(SkDashPathEffect::Create(fDashArray,
- fDashArrayLength,
- fDashPhase))->unref();
- }
- }
-
- // TODO(edisonn): NYI multiple blend modes
- if (fBlendModesLength == 1 && fBlendModes[0] != SkXfermode::kSrc_Mode) {
- paint->setXfermodeMode(fBlendModes[0]);
- }
-
- //paint->setStrokeMiter(SkDoubleToScalar(fMiterLimit));
- // TODO(edisonn): impl cap and join
-}
« no previous file with comments | « experimental/PdfViewer/SkPdfGraphicsState.h ('k') | experimental/PdfViewer/SkPdfReporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698