OSDN Git Service

mDirtyRegion is single threaded, but could be accessed from a hwc thread
authorMathias Agopian <mathias@google.com>
Fri, 21 Oct 2011 22:18:28 +0000 (15:18 -0700)
committerThe Android Automerger <android-build@android.com>
Sat, 22 Oct 2011 00:04:05 +0000 (17:04 -0700)
commit0ef47a6a150ea0bf41cdebd2b34bb1d72696ef8c
tree87a39b5cdbf821691c07080240b08e1ff7e1d3a7
parent69bd1e50f8defdfcd41979cffd7a7733368cff33
mDirtyRegion is single threaded, but could be accessed from a hwc thread

We now have mInvalidateRegion which holds the region to invalidate, it
can be set from any thread as long as mInvalidateLock is held. We use
fine-grained locking here because mInvalidateRegion can be set from anywhere,
in particular frmo HWC callbacks.

Bug: 5466774
Change-Id: Iafca20aa3f5b25a87755e65bde7b769aa8f997bc
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h