Index: content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java |
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 6b7706bd5cc21f9c052ed4c839314d95a927c95f..90481f6dfe8dcc47ec9da660f070de493c9605bb 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; |
} |
/** |