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

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

Issue 27043002: pdfviewer: (more code cleanup): class documentation and comments Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | experimental/PdfViewer/SkTrackDevice.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
14 *
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.
17 *
18 */
13 class SK_API SkNulCanvas : public SkCanvas { 19 class SK_API SkNulCanvas : public SkCanvas {
14 public: 20 public:
15 SK_DECLARE_INST_COUNT(SkNulCanvas); 21 SK_DECLARE_INST_COUNT(SkNulCanvas);
16 22
17 SkNulCanvas() {} 23 SkNulCanvas() {}
18 explicit SkNulCanvas(SkBaseDevice* device) : SkCanvas(device) {} 24 explicit SkNulCanvas(SkBaseDevice* device) : SkCanvas(device) {}
19 25
20 explicit SkNulCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap) {} 26 explicit SkNulCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap) {}
21 virtual ~SkNulCanvas() {} 27 virtual ~SkNulCanvas() {}
22 28
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 96
91 protected: 97 protected:
92 virtual SkCanvas* canvasForDrawIter() {return NULL;} 98 virtual SkCanvas* canvasForDrawIter() {return NULL;}
93 virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;} 99 virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;}
94 100
95 private: 101 private:
96 typedef SkCanvas INHERITED; 102 typedef SkCanvas INHERITED;
97 }; 103 };
98 104
99 #endif // SkNulCanvas_DEFINED 105 #endif // SkNulCanvas_DEFINED
OLDNEW
« no previous file with comments | « no previous file | experimental/PdfViewer/SkTrackDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698