am 7ad6dc27: Merge change 25110 into eclair

Merge commit '7ad6dc27176a0d3f5374d7d3b9bffda492296237' into eclair-plus-aosp

* commit '7ad6dc27176a0d3f5374d7d3b9bffda492296237':
  synchronize access to pictureReady, copyContentPicture
This commit is contained in:
Cary Clark
2009-09-15 13:51:26 -07:00
committed by Android Git Automerger

View File

@@ -837,9 +837,11 @@ final class WebViewCore {
case DESTROY: case DESTROY:
// Time to take down the world. Cancel all pending // Time to take down the world. Cancel all pending
// loads and destroy the native view and frame. // loads and destroy the native view and frame.
mBrowserFrame.destroy(); synchronized (WebViewCore.this) {
mBrowserFrame = null; mBrowserFrame.destroy();
mNativeClass = 0; mBrowserFrame = null;
mNativeClass = 0;
}
break; break;
case UPDATE_FRAME_CACHE_IF_LOADING: case UPDATE_FRAME_CACHE_IF_LOADING:
@@ -1623,11 +1625,11 @@ final class WebViewCore {
} }
} }
/* package */ boolean pictureReady() { /* package */ synchronized boolean pictureReady() {
return nativePictureReady(); return nativePictureReady();
} }
/*package*/ Picture copyContentPicture() { /*package*/ synchronized Picture copyContentPicture() {
Picture result = new Picture(); Picture result = new Picture();
nativeCopyContentToPicture(result); nativeCopyContentToPicture(result);
return result; return result;