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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp

Issue 23361009: pdfviewer: code cleanup - add licence on files, make replace __DEFINE__foo with foo_DEFINED to matc… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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
OLDNEW
1 /*
2 * Copyright 2013 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
1 #include "SkPdfNativeDoc.h" 8 #include "SkPdfNativeDoc.h"
2 #include "SkPdfNativeTokenizer.h" 9 #include "SkPdfNativeTokenizer.h"
3 #include "SkPdfNativeObject.h" 10 #include "SkPdfNativeObject.h"
4 11
5 #include <stdio.h> 12 #include <stdio.h>
6 #include <string.h> 13 #include <string.h>
7 #include <sys/types.h> 14 #include <sys/types.h>
8 #include <sys/stat.h> 15 #include <sys/stat.h>
9 16
10 // TODO(edisonn): for some reason on mac these files are found here, but are fou nd from headers 17 // TODO(edisonn): for some reason on mac these files are found here, but are fou nd from headers
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 return (SkPdfNativeObject*)ref; 577 return (SkPdfNativeObject*)ref;
571 } 578 }
572 579
573 size_t SkPdfNativeDoc::bytesUsed() const { 580 size_t SkPdfNativeDoc::bytesUsed() const {
574 return fAllocator->bytesUsed() + 581 return fAllocator->bytesUsed() +
575 fContentLength + 582 fContentLength +
576 fObjects.count() * sizeof(PublicObjectEntry) + 583 fObjects.count() * sizeof(PublicObjectEntry) +
577 fPages.count() * sizeof(SkPdfPageObjectDictionary*) + 584 fPages.count() * sizeof(SkPdfPageObjectDictionary*) +
578 sizeof(*this); 585 sizeof(*this);
579 } 586 }
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.h ('k') | experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698