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

Unified Diff: components/mus/surfaces/direct_output_surface.h

Issue 1893853002: Use unique_ptr in more parts of mus code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 8 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 | « no previous file | components/mus/surfaces/surfaces_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/surfaces/direct_output_surface.h
diff --git a/components/mus/surfaces/direct_output_surface.h b/components/mus/surfaces/direct_output_surface.h
index 73c6e8adfb97377ffa61c12fdb73a5279295b125..b4caad34f0733d6c655d7535981f1a7ab19194bb 100644
--- a/components/mus/surfaces/direct_output_surface.h
+++ b/components/mus/surfaces/direct_output_surface.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_H_
#define COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_H_
+#include <memory>
+
#include "cc/output/output_surface.h"
#include "cc/scheduler/begin_frame_source.h"
#include "components/mus/surfaces/surfaces_context_provider.h"
@@ -30,7 +32,7 @@ class DirectOutputSurface : public cc::OutputSurface,
void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override;
private:
- scoped_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_;
+ std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_;
base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
};
« no previous file with comments | « no previous file | components/mus/surfaces/surfaces_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698