Search in sources :

Example 11 with SurfaceSession

use of android.view.SurfaceSession in project android_frameworks_base by ResurrectionRemix.

the class Session method windowAddedLocked.

void windowAddedLocked() {
    if (mSurfaceSession == null) {
        if (WindowManagerService.localLOGV)
            Slog.v(TAG_WM, "First window added to " + this + ", creating SurfaceSession");
        mSurfaceSession = new SurfaceSession();
        if (SHOW_TRANSACTIONS)
            Slog.i(TAG_WM, "  NEW SURFACE SESSION " + mSurfaceSession);
        mService.mSessions.add(this);
        if (mLastReportedAnimatorScale != mService.getCurrentAnimatorScale()) {
            mService.dispatchNewAnimatorScaleLocked(this);
        }
    }
    mNumWindow++;
}
Also used : SurfaceSession(android.view.SurfaceSession)

Example 12 with SurfaceSession

use of android.view.SurfaceSession in project android_frameworks_base by crdroidandroid.

the class Session method windowAddedLocked.

void windowAddedLocked() {
    if (mSurfaceSession == null) {
        if (WindowManagerService.localLOGV)
            Slog.v(TAG_WM, "First window added to " + this + ", creating SurfaceSession");
        mSurfaceSession = new SurfaceSession();
        if (SHOW_TRANSACTIONS)
            Slog.i(TAG_WM, "  NEW SURFACE SESSION " + mSurfaceSession);
        mService.mSessions.add(this);
        if (mLastReportedAnimatorScale != mService.getCurrentAnimatorScale()) {
            mService.dispatchNewAnimatorScaleLocked(this);
        }
    }
    mNumWindow++;
}
Also used : SurfaceSession(android.view.SurfaceSession)

Aggregations

SurfaceSession (android.view.SurfaceSession)12 EGLSurface (android.opengl.EGLSurface)6 Surface (android.view.Surface)6 SurfaceControl (android.view.SurfaceControl)6 OutOfResourcesException (android.view.Surface.OutOfResourcesException)5