diff options
-rw-r--r-- | content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java index 6b7706b..90481f6 100644 --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java @@ -78,6 +78,10 @@ public class ContentViewRenderView extends FrameLayout { public void surfaceCreated(SurfaceHolder holder) { assert mNativeContentViewRenderView != 0; nativeSurfaceCreated(mNativeContentViewRenderView, holder.getSurface()); + + mPendingSwapBuffers = 0; + mPendingRenders = 0; + onReadyToRender(); } @@ -207,8 +211,6 @@ public class ContentViewRenderView extends FrameLayout { * render. */ protected void onReadyToRender() { - mPendingSwapBuffers = 0; - mPendingRenders = 0; } /** |