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

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

Issue 803913005: Remove SkCanvas::isDrawingToLayer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init fix Created 6 years 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 | « no previous file | include/core/SkCanvas.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkNulCanvas_DEFINED 8 #ifndef SkNulCanvas_DEFINED
9 #define SkNulCanvas_DEFINED 9 #define SkNulCanvas_DEFINED
10 10
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 12
13 /** \class SkNulCanvas 13 /** \class SkNulCanvas
14 * 14 *
15 * Nul Canvas is a canvas that does nothing. It is used to measure the perf of just parsing 15 * Nul Canvas is a canvas that does nothing. It is used to measure the perf of just parsing
16 * a pdf, without actually rendering anything. 16 * a pdf, without actually rendering anything.
17 * 17 *
18 */ 18 */
19 class SK_API SkNulCanvas : public SkCanvas { 19 class SK_API SkNulCanvas : public SkCanvas {
20 public: 20 public:
21 SK_DECLARE_INST_COUNT(SkNulCanvas); 21 SK_DECLARE_INST_COUNT(SkNulCanvas);
22 22
23 SkNulCanvas() {} 23 SkNulCanvas() {}
24 explicit SkNulCanvas(SkBaseDevice* device) : SkCanvas(device) {} 24 explicit SkNulCanvas(SkBaseDevice* device) : SkCanvas(device) {}
25 25
26 explicit SkNulCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap) {} 26 explicit SkNulCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap) {}
27 virtual ~SkNulCanvas() {} 27 virtual ~SkNulCanvas() {}
28 28
29 virtual bool isDrawingToLayer() const SK_OVERRIDE {return false;}
30 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE {} 29 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE {}
31 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], 30 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
32 const SkPaint& paint) SK_OVERRIDE {} 31 const SkPaint& paint) SK_OVERRIDE {}
33 virtual void drawRect(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE {} 32 virtual void drawRect(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE {}
34 virtual void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE {} 33 virtual void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE {}
35 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI DE {} 34 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI DE {}
36 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE {} 35 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE {}
37 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 36 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
38 const SkPaint* paint = NULL) SK_OVERRIDE {} 37 const SkPaint* paint = NULL) SK_OVERRIDE {}
39 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 38 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE {} 96 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE {}
98 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} 97 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {}
99 98
100 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE {} 99 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE {}
101 100
102 private: 101 private:
103 typedef SkCanvas INHERITED; 102 typedef SkCanvas INHERITED;
104 }; 103 };
105 104
106 #endif // SkNulCanvas_DEFINED 105 #endif // SkNulCanvas_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698