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

Side by Side Diff: experimental/PdfViewer/src/SkPdfContext.cpp

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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 | « experimental/PdfViewer/SkNulCanvas.h ('k') | experimental/PdfViewer/src/SkPdfRenderer.cpp » ('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 #include "SkPdfContext.h" 8 #include "SkPdfContext.h"
9 #include "SkPdfNativeDoc.h" 9 #include "SkPdfNativeDoc.h"
10 #include "SkPdfReporter.h" 10 #include "SkPdfReporter.h"
11 #include "SkPdfTokenLooper.h" 11 #include "SkPdfTokenLooper.h"
12 12
13 /////////////////////////////////////////////////////////////////////////////// 13 ///////////////////////////////////////////////////////////////////////////////
14 14
15 class PdfMainLooper : public SkPdfTokenLooper { 15 class PdfMainLooper : public SkPdfTokenLooper {
16 public: 16 public:
17 PdfMainLooper(SkPdfNativeTokenizer* tokenizer, 17 PdfMainLooper(SkPdfNativeTokenizer* tokenizer,
18 SkPdfContext* pdfContext, 18 SkPdfContext* pdfContext,
19 SkCanvas* canvas) 19 SkCanvas* canvas)
20 : INHERITED(tokenizer, pdfContext, canvas) {} 20 : INHERITED(tokenizer, pdfContext, canvas) {}
21 21
22 virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; 22 SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE;
23 virtual void loop() SK_OVERRIDE; 23 void loop() SK_OVERRIDE;
24 24
25 private: 25 private:
26 typedef SkPdfTokenLooper INHERITED; 26 typedef SkPdfTokenLooper INHERITED;
27 }; 27 };
28 28
29 /////////////////////////////////////////////////////////////////////////////// 29 ///////////////////////////////////////////////////////////////////////////////
30 30
31 SkPdfContext::SkPdfContext(SkPdfNativeDoc* doc) 31 SkPdfContext::SkPdfContext(SkPdfNativeDoc* doc)
32 : fPdfDoc(doc) 32 : fPdfDoc(doc)
33 { 33 {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 return kOK_SkPdfResult; 118 return kOK_SkPdfResult;
119 } 119 }
120 120
121 void PdfMainLooper::loop() { 121 void PdfMainLooper::loop() {
122 PdfToken token; 122 PdfToken token;
123 while (fTokenizer->readToken(&token, true)) { 123 while (fTokenizer->readToken(&token, true)) {
124 this->consumeToken(token); 124 this->consumeToken(token);
125 } 125 }
126 } 126 }
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkNulCanvas.h ('k') | experimental/PdfViewer/src/SkPdfRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698