File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ const std::string& SurfaceControl::getName() const {
194194 return mName ;
195195}
196196
197- std::shared_ptr <Choreographer> SurfaceControl::getChoreographer () {
197+ sp <Choreographer> SurfaceControl::getChoreographer () {
198198 if (mChoreographer ) {
199199 return mChoreographer ;
200200 }
@@ -203,7 +203,7 @@ std::shared_ptr<Choreographer> SurfaceControl::getChoreographer() {
203203 ALOGE (" %s: No looper prepared for thread" , __func__);
204204 return nullptr ;
205205 }
206- mChoreographer = std::make_shared <Choreographer>(looper, getHandle ());
206+ mChoreographer = sp <Choreographer>:: make (looper, getHandle ());
207207 status_t result = mChoreographer ->initialize ();
208208 if (result != OK) {
209209 ALOGE (" Failed to initialize choreographer" );
Original file line number Diff line number Diff line change 2626
2727#include < android/gui/ISurfaceComposerClient.h>
2828
29+ #include < gui/Choreographer.h>
2930#include < ui/FrameStats.h>
3031#include < ui/PixelFormat.h>
3132#include < ui/Region.h>
@@ -36,7 +37,6 @@ namespace android {
3637
3738// ---------------------------------------------------------------------------
3839
39- class Choreographer ;
4040class IGraphicBufferProducer ;
4141class Surface ;
4242class SurfaceComposerClient ;
@@ -82,7 +82,7 @@ class SurfaceControl : public RefBase
8282 const std::string& getName () const ;
8383
8484 // TODO(b/267195698): Consider renaming.
85- std::shared_ptr <Choreographer> getChoreographer ();
85+ sp <Choreographer> getChoreographer ();
8686
8787 sp<IGraphicBufferProducer> getIGraphicBufferProducer ();
8888
@@ -134,7 +134,7 @@ class SurfaceControl : public RefBase
134134 PixelFormat mFormat = PIXEL_FORMAT_NONE;
135135 uint32_t mCreateFlags = 0 ;
136136 uint64_t mFallbackFrameNumber = 100 ;
137- std::shared_ptr <Choreographer> mChoreographer ;
137+ sp <Choreographer> mChoreographer ;
138138};
139139
140140}; // namespace android
You can’t perform that action at this time.
0 commit comments