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

Unified Diff: content/browser/gpu/shader_disk_cache.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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
Index: content/browser/gpu/shader_disk_cache.cc
diff --git a/content/browser/gpu/shader_disk_cache.cc b/content/browser/gpu/shader_disk_cache.cc
index 4623208610b1644d2e10f362571ff4beea3b8e3f..48a76c55a6c177cecec73fd5df2389c43b0a652a 100644
--- a/content/browser/gpu/shader_disk_cache.cc
+++ b/content/browser/gpu/shader_disk_cache.cc
@@ -218,10 +218,13 @@ int ShaderDiskCacheEntry::WriteCallback(int rv) {
op_type_ = WRITE_DATA;
scoped_refptr<net::StringIOBuffer> io_buf = new net::StringIOBuffer(shader_);
- return entry_->WriteData(1, 0, io_buf, shader_.length(),
- base::Bind(&ShaderDiskCacheEntry::OnOpComplete,
- this),
- false);
+ return entry_->WriteData(
+ 1,
+ 0,
+ io_buf.get(),
+ shader_.length(),
+ base::Bind(&ShaderDiskCacheEntry::OnOpComplete, this),
+ false);
}
int ShaderDiskCacheEntry::IOComplete(int rv) {
@@ -304,9 +307,12 @@ int ShaderDiskReadHelper::OpenNextEntryComplete(int rv) {
op_type_ = READ_COMPLETE;
buf_ = new net::IOBufferWithSize(entry_->GetDataSize(1));
- return entry_->ReadData(1, 0, buf_, buf_->size(),
- base::Bind(&ShaderDiskReadHelper::OnOpComplete,
- this));
+ return entry_->ReadData(
+ 1,
+ 0,
+ buf_.get(),
+ buf_->size(),
+ base::Bind(&ShaderDiskReadHelper::OnOpComplete, this));
}
int ShaderDiskReadHelper::ReadComplete(int rv) {
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/in_process_webkit/indexed_db_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698