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

Unified Diff: src/pdf/SkPDFImageStream.h

Issue 22889020: Refactor SkPDFImage (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix some nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pdf/SkPDFImage.cpp ('k') | src/pdf/SkPDFImageStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFImageStream.h
diff --git a/src/pdf/SkPDFImageStream.h b/src/pdf/SkPDFImageStream.h
deleted file mode 100644
index c518081518b7859cdece2e9897be5d5eb43a3c30..0000000000000000000000000000000000000000
--- a/src/pdf/SkPDFImageStream.h
+++ /dev/null
@@ -1,53 +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.
- */
-
-#ifndef SkPDFImageStream_DEFINED
-#define SkPDFImageStream_DEFINED
-
-#include "SkBitmap.h"
-#include "SkPDFDevice.h"
-#include "SkPDFStream.h"
-#include "SkPDFTypes.h"
-#include "SkRect.h"
-#include "SkRefCnt.h"
-#include "SkStream.h"
-#include "SkTemplates.h"
-
-class SkPDFCatalog;
-
-/** \class SkPDFImageStream
-
- An image stream object in a PDF. Note, all streams must be indirect objects
- (via SkObjRef).
- This class is similar to SkPDFStream, but it is also able to use image
- specific compression. Currently we support DCT(jpeg) and flate(zip).
-*/
-class SkPDFImageStream : public SkPDFStream {
-public:
- /** Create a PDF stream with the same content and dictionary entries
- * as the passed one.
- */
- explicit SkPDFImageStream(const SkPDFImageStream& pdfStream);
- virtual ~SkPDFImageStream();
-
-protected:
- SkPDFImageStream(SkStream* stream, const SkBitmap& bitmap,
- const SkIRect& srcRect, EncodeToDCTStream encoder);
-
- // Populate the stream dictionary. This method returns false if
- // fSubstitute should be used.
- virtual bool populate(SkPDFCatalog* catalog);
-
-private:
- const SkBitmap fBitmap;
- const SkIRect fSrcRect;
- EncodeToDCTStream fEncoder;
-
- typedef SkPDFStream INHERITED;
-};
-
-#endif
« no previous file with comments | « src/pdf/SkPDFImage.cpp ('k') | src/pdf/SkPDFImageStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698