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

Side by Side Diff: src/pdf/SkPDFCanvas.h

Issue 1812063002: SkPDF: Add SkPDFCanvas to intercept some draw calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-03-21 (Monday) 15:44:28 EDT Created 4 years, 9 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
« no previous file with comments | « gyp/pdf.gypi ('k') | src/pdf/SkPDFCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef SkPDFCanvas_DEFINED
8 #define SkPDFCanvas_DEFINED
9
10 #include "SkCanvas.h"
11
12 class SkPDFDevice;
13
14 class SkPDFCanvas : public SkCanvas {
15 public:
16 SkPDFCanvas(const sk_sp<SkPDFDevice>&);
17 ~SkPDFCanvas();
18
19 protected:
20 void onDrawBitmapNine(const SkBitmap&, const SkIRect&, const SkRect&,
21 const SkPaint*) override;
22
23 void onDrawImageNine(const SkImage*, const SkIRect&, const SkRect&,
24 const SkPaint*) override;
25
26 void onDrawImageRect(const SkImage*,
27 const SkRect*,
28 const SkRect&,
29 const SkPaint*,
30 SkCanvas::SrcRectConstraint) override;
31
32 void onDrawBitmapRect(const SkBitmap&,
33 const SkRect*,
34 const SkRect&,
35 const SkPaint*,
36 SkCanvas::SrcRectConstraint) override;
37 };
38
39 #endif // SkPDFCanvas_DEFINED
OLDNEW
« no previous file with comments | « gyp/pdf.gypi ('k') | src/pdf/SkPDFCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698