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

Unified Diff: cc/output/renderer_unittest.cc

Issue 1803863003: cc: Remove some unnecessary const scoped_refptr&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/renderer_pixeltest.cc ('k') | cc/output/texture_mailbox_deleter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/renderer_unittest.cc
diff --git a/cc/output/renderer_unittest.cc b/cc/output/renderer_unittest.cc
index 3c8b0b8cff4787d58f6cdec9cc0e9988e28eddcb..1648aece04ac299f3d002de4390c42f2acdbc8a3 100644
--- a/cc/output/renderer_unittest.cc
+++ b/cc/output/renderer_unittest.cc
@@ -18,8 +18,7 @@ namespace {
class TestOutputSurface : public OutputSurface {
public:
- explicit TestOutputSurface(
- const scoped_refptr<ContextProvider>& context_provider);
+ explicit TestOutputSurface(scoped_refptr<ContextProvider> context_provider);
~TestOutputSurface() override;
// OutputSurface implementation
@@ -27,9 +26,8 @@ class TestOutputSurface : public OutputSurface {
};
TestOutputSurface::TestOutputSurface(
- const scoped_refptr<ContextProvider>& context_provider)
- : OutputSurface(context_provider) {
-}
+ scoped_refptr<ContextProvider> context_provider)
+ : OutputSurface(std::move(context_provider)) {}
TestOutputSurface::~TestOutputSurface() {
}
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/output/texture_mailbox_deleter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698