OLD | NEW |
| 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 Loading... |
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 } |
OLD | NEW |