Skip to content

Commit 4f8ce35

Browse files
author
Steven Moreland
committed
opengl stubs: update for no implicit sp
Required to enable ANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION Bug: 393013610 Test: boot Change-Id: I790a22f3bfcbc988b0db93f4105254f1f61ab647
1 parent 3741f95 commit 4f8ce35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opengl/tools/glgen/stubs/egl/eglCreateWindowSurface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ android_eglCreateWindowSurfaceTexture
113113
if (producer == NULL)
114114
goto not_valid_surface;
115115

116-
window = new android::Surface(producer, true);
116+
window = android::sp<android::Surface>::make(producer, true);
117117

118118
if (window == NULL)
119119
goto not_valid_surface;

0 commit comments

Comments
 (0)