diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-16 23:58:27 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-16 23:58:27 +0000 |
commit | b5ab398db97d13c76d332c6567c23a575858f8c4 (patch) | |
tree | 54a5771b49afbb92470d92b82bcac1a78d10f2f8 /printing/pdf_ps_metafile_cairo.cc | |
parent | 77bd2cefb7f0f8f437b47b3d6a3dd458b8d4fe2e (diff) | |
download | chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.zip chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.tar.gz chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.tar.bz2 |
Make SharedMemory use uint32 instead of size_t. This removes the remaining size_t's from the IPC code.
Review URL: http://codereview.chromium.org/581001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_ps_metafile_cairo.cc')
-rw-r--r-- | printing/pdf_ps_metafile_cairo.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/printing/pdf_ps_metafile_cairo.cc b/printing/pdf_ps_metafile_cairo.cc index db70d08..31c1e8a 100644 --- a/printing/pdf_ps_metafile_cairo.cc +++ b/printing/pdf_ps_metafile_cairo.cc @@ -121,7 +121,7 @@ bool PdfPsMetafile::Init() { return true; } -bool PdfPsMetafile::Init(const void* src_buffer, size_t src_buffer_size) { +bool PdfPsMetafile::Init(const void* src_buffer, uint32 src_buffer_size) { // We need to check at least these two members to ensure Init() has not been // called before. Passing these two checks also implies that surface_, // page_surface_, and page_context_ are NULL, and current_page_ is empty. @@ -307,7 +307,7 @@ void PdfPsMetafile::Close() { CleanUpSurface(&surface_); } -unsigned int PdfPsMetafile::GetDataSize() const { +uint32 PdfPsMetafile::GetDataSize() const { // We need to check at least these two members to ensure that either Init() // has been called to initialize |all_pages_|, or metafile has been closed. // Passing these two checks also implies that surface_, page_surface_, and @@ -318,7 +318,7 @@ unsigned int PdfPsMetafile::GetDataSize() const { return all_pages_.size(); } -bool PdfPsMetafile::GetData(void* dst_buffer, size_t dst_buffer_size) const { +bool PdfPsMetafile::GetData(void* dst_buffer, uint32 dst_buffer_size) const { DCHECK(dst_buffer); DCHECK_GT(dst_buffer_size, 0u); // We need to check at least these two members to ensure that either Init() @@ -328,7 +328,7 @@ bool PdfPsMetafile::GetData(void* dst_buffer, size_t dst_buffer_size) const { DCHECK(!context_); DCHECK(!all_pages_.empty()); - size_t data_size = GetDataSize(); + uint32 data_size = GetDataSize(); if (dst_buffer_size > data_size) { return false; } |