/** Makes the passed ContentView the one displayed by this ContentViewRenderView. */
  public void setCurrentContentView(ContentView contentView) {
    assert mNativeContentViewRenderView != 0;
    mCurrentContentView = contentView;

    ContentViewCore contentViewCore = contentView != null ? contentView.getContentViewCore() : null;

    nativeSetCurrentContentView(
        mNativeContentViewRenderView,
        contentViewCore != null ? contentViewCore.getNativeContentViewCore() : 0);

    if (contentViewCore != null) {
      contentViewCore.onPhysicalBackingSizeChanged(getWidth(), getHeight());
      mVSyncAdapter.setVSyncListener(contentViewCore.getVSyncListener(mVSyncAdapter));
    }
  }