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

Unified Diff: cc/output/output_surface.cc

Issue 467183003: Minor scoped_refptr cleanup in cc::OutputSurface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: With raw pointer Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index 39b2f4ce1c02bca3cc9b50fdb6400d80c099e4de..a0efb6fdb28addad45dc62f4ee3c097320a334ad 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -33,7 +33,8 @@ using std::vector;
namespace cc {
-OutputSurface::OutputSurface(scoped_refptr<ContextProvider> context_provider)
+OutputSurface::OutputSurface(
+ const scoped_refptr<ContextProvider>& context_provider)
: client_(NULL),
context_provider_(context_provider),
device_scale_factor_(-1),
@@ -49,8 +50,9 @@ OutputSurface::OutputSurface(scoped_ptr<SoftwareOutputDevice> software_device)
weak_ptr_factory_(this) {
}
-OutputSurface::OutputSurface(scoped_refptr<ContextProvider> context_provider,
- scoped_ptr<SoftwareOutputDevice> software_device)
+OutputSurface::OutputSurface(
+ const scoped_refptr<ContextProvider>& context_provider,
+ scoped_ptr<SoftwareOutputDevice> software_device)
: client_(NULL),
context_provider_(context_provider),
software_device_(software_device.Pass()),
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698