skia2/src/xps/SkXPSDocument.h
Chris Dalton 1ef80942b3 turn on extended Clang warnings on Windows too
Plus some small rearrangements of the various warning lists.

Change-Id: Ied58f940341d69ddab971a529fd01b1e96b65641
Reviewed-on: https://skia-review.googlesource.com/67720
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-12-04 19:29:51 +00:00

42 lines
954 B
C++

/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkXPSDocument_DEFINED
#define SkXPSDocument_DEFINED
#include "SkTypes.h"
#ifdef SK_BUILD_FOR_WIN
#include "SkDocument.h"
#include "SkXPSDevice.h"
#include "SkTScopedComPtr.h"
#include <XpsObjectModel.h>
class SkXPSDocument final : public SkDocument {
public:
SkXPSDocument(SkWStream*, SkScalar dpi, SkTScopedComPtr<IXpsOMObjectFactory>);
~SkXPSDocument() override;
protected:
SkCanvas* onBeginPage(SkScalar w, SkScalar h) override;
void onEndPage() override;
void onClose(SkWStream*) override;
void onAbort() override;
private:
SkTScopedComPtr<IXpsOMObjectFactory> fXpsFactory;
SkXPSDevice fDevice;
std::unique_ptr<SkCanvas> fCanvas;
SkVector fUnitsPerMeter;
SkVector fPixelsPerMeter;
};
#endif // SK_BUILD_FOR_WIN
#endif // SkXPSDocument_DEFINED