pdfviewer: fix break, include the right header.
Review URL: https://codereview.chromium.org/23493018 git-svn-id: http://skia.googlecode.com/svn/trunk@11083 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
bd6343b1d6
commit
e91260c3e7
@ -5,6 +5,7 @@
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "SkBitmapDevice.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkDevice.h"
|
||||
#include "SkForceLinking.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
#ifndef SkTrackDevice_DEFINED
|
||||
#define SkTrackDevice_DEFINED
|
||||
|
||||
#include "SkDevice.h"
|
||||
#include "SkBitmapDevice.h"
|
||||
#include "SkTracker.h"
|
||||
|
||||
class SkTrackDevice : public SkBitmapDevice {
|
||||
|
@ -971,7 +971,7 @@ bool SkPdfNativeTokenizer::readTokenCore(PdfToken* token) {
|
||||
printf("break;\n");
|
||||
}
|
||||
#endif
|
||||
printf("%i READ %s %s\n", read_op, token->fType == kKeyword_TokenType ? "Keyword" : "Object", token->fKeyword ? std::string(token->fKeyword, token->fKeywordLength).c_str() : token->fObject->toString().c_str());
|
||||
printf("%i READ %s %s\n", read_op, token->fType == kKeyword_TokenType ? "Keyword" : "Object", token->fKeyword ? SkString(token->fKeyword, token->fKeywordLength).c_str() : token->fObject->toString().c_str());
|
||||
#endif
|
||||
|
||||
return true;
|
||||
@ -982,7 +982,7 @@ void SkPdfNativeTokenizer::PutBack(PdfToken token) {
|
||||
fHasPutBack = true;
|
||||
fPutBack = token;
|
||||
#ifdef PDF_TRACE_READ_TOKEN
|
||||
printf("PUT_BACK %s %s\n", token.fType == kKeyword_TokenType ? "Keyword" : "Object", token.fKeyword ? std::string(token.fKeyword, token.fKeywordLength).c_str(): token.fObject->toString().c_str());
|
||||
printf("PUT_BACK %s %s\n", token.fType == kKeyword_TokenType ? "Keyword" : "Object", token.fKeyword ? SkString(token.fKeyword, token.fKeywordLength).c_str(): token.fObject->toString().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -991,7 +991,7 @@ bool SkPdfNativeTokenizer::readToken(PdfToken* token) {
|
||||
*token = fPutBack;
|
||||
fHasPutBack = false;
|
||||
#ifdef PDF_TRACE_READ_TOKEN
|
||||
printf("READ_BACK %s %s\n", token->fType == kKeyword_TokenType ? "Keyword" : "Object", token->fKeyword ? std::string(token->fKeyword, token->fKeywordLength).c_str() : token->fObject->toString().c_str());
|
||||
printf("READ_BACK %s %s\n", token->fType == kKeyword_TokenType ? "Keyword" : "Object", token->fKeyword ? SkString(token->fKeyword, token->fKeywordLength).c_str() : token->fObject->toString().c_str());
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user