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

Unified Diff: printing/pdf_metafile_skia.cc

Issue 10702144: roll skia to 4552 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | skia/skia.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/pdf_metafile_skia.cc
===================================================================
--- printing/pdf_metafile_skia.cc (revision 146108)
+++ printing/pdf_metafile_skia.cc (working copy)
@@ -119,7 +119,7 @@
return false;
SkAutoDataUnref data(data_->pdf_stream_.copyToData());
- memcpy(dst_buffer, data.bytes(), dst_buffer_size);
+ memcpy(dst_buffer, data->bytes(), dst_buffer_size);
return true;
}
@@ -127,7 +127,7 @@
DCHECK_GT(data_->pdf_stream_.getOffset(), 0U);
SkAutoDataUnref data(data_->pdf_stream_.copyToData());
if (file_util::WriteFile(file_path,
- reinterpret_cast<const char*>(data.data()),
+ reinterpret_cast<const char*>(data->data()),
GetDataSize()) != static_cast<int>(GetDataSize())) {
DLOG(ERROR) << "Failed to save file " << file_path.value().c_str();
return false;
@@ -184,7 +184,7 @@
DCHECK_GT(data_->pdf_stream_.getOffset(), 0U);
if (data_->pdf_cg_.GetDataSize() == 0) {
SkAutoDataUnref data(data_->pdf_stream_.copyToData());
- data_->pdf_cg_.InitFromData(data.bytes(), data.size());
+ data_->pdf_cg_.InitFromData(data->bytes(), data->size());
}
return data_->pdf_cg_.RenderPage(page_number, context, rect, params);
}
@@ -202,7 +202,7 @@
bool result = true;
SkAutoDataUnref data(data_->pdf_stream_.copyToData());
if (file_util::WriteFileDescriptor(fd.fd,
- reinterpret_cast<const char*>(data.data()),
+ reinterpret_cast<const char*>(data->data()),
GetDataSize()) !=
static_cast<int>(GetDataSize())) {
DLOG(ERROR) << "Failed to save file with fd " << fd.fd;
@@ -234,11 +234,11 @@
return NULL;
SkAutoDataUnref data(pdf_stream.copyToData());
- if (data.size() == 0)
+ if (data->size() == 0)
return NULL;
PdfMetafileSkia* metafile = new PdfMetafileSkia;
- metafile->InitFromData(data.bytes(), data.size());
+ metafile->InitFromData(data->bytes(), data->size());
return metafile;
}
« no previous file with comments | « DEPS ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698