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

Unified Diff: cc/output/output_surface.h

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/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index f3a874ac458b064486cd6335466728049738484f..eeef838ba67dd57d969ff3b0f1953954a6635a08 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -46,11 +46,12 @@ class CC_EXPORT OutputSurface {
DEFAULT_MAX_FRAMES_PENDING = 2
};
- explicit OutputSurface(scoped_refptr<ContextProvider> context_provider);
+ explicit OutputSurface(
+ const scoped_refptr<ContextProvider>& context_provider);
explicit OutputSurface(scoped_ptr<SoftwareOutputDevice> software_device);
- OutputSurface(scoped_refptr<ContextProvider> context_provider,
+ OutputSurface(const scoped_refptr<ContextProvider>& context_provider,
scoped_ptr<SoftwareOutputDevice> software_device);
virtual ~OutputSurface();
@@ -85,9 +86,7 @@ class CC_EXPORT OutputSurface {
// surface. Either of these may return a null pointer, but not both.
// In the event of a lost context, the entire output surface should be
// recreated.
- scoped_refptr<ContextProvider> context_provider() const {
- return context_provider_.get();
- }
+ ContextProvider* context_provider() const { return context_provider_.get(); }
SoftwareOutputDevice* software_device() const {
return software_device_.get();
}
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698