Skip to content

Commit 53cf202

Browse files
Jamie GennisAndroid (Google) Code Review
authored andcommitted
Merge changes I37fd43b5,I91eb29db,I0491ce35 into ics-mr1
* changes: SurfaceTexture: fix a couple tests EGL: default to swap interval 1 SurfaceTexture: clean up some tests
2 parents 68f0d47 + caa4482 commit 53cf202

File tree

4 files changed

+319
-241
lines changed

4 files changed

+319
-241
lines changed

include/gui/SurfaceTexture.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ class SurfaceTexture : public BnSurfaceTexture {
202202
// getCurrentScalingMode returns the scaling mode of the current buffer
203203
uint32_t getCurrentScalingMode() const;
204204

205+
// isSynchronousMode returns whether the SurfaceTexture is currently in
206+
// synchronous mode.
207+
bool isSynchronousMode() const;
208+
205209
// abandon frees all the buffers and puts the SurfaceTexture into the
206210
// 'abandoned' state. Once put in this state the SurfaceTexture can never
207211
// leave it. When in the 'abandoned' state, all methods of the

libs/gui/SurfaceTexture.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,11 @@ uint32_t SurfaceTexture::getCurrentScalingMode() const {
10051005
return mCurrentScalingMode;
10061006
}
10071007

1008+
bool SurfaceTexture::isSynchronousMode() const {
1009+
Mutex::Autolock lock(mMutex);
1010+
return mSynchronousMode;
1011+
}
1012+
10081013
int SurfaceTexture::query(int what, int* outValue)
10091014
{
10101015
Mutex::Autolock lock(mMutex);

0 commit comments

Comments
 (0)