| 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 709d57499b7715ae87ea59bc1c205a8305bb53a6..d869ab015196c9343e5beaf9a495ee4437f19c80 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
|
| @@ -5,8 +5,6 @@
|
| package org.chromium.content.browser;
|
|
|
| import android.content.Context;
|
| -import android.graphics.Bitmap;
|
| -import android.graphics.Canvas;
|
| import android.graphics.Color;
|
| import android.graphics.PixelFormat;
|
| import android.view.Surface;
|
| @@ -150,18 +148,7 @@ public class ContentViewRenderView extends FrameLayout {
|
| * @return The created SurfaceView object.
|
| */
|
| protected SurfaceView createSurfaceView(Context context) {
|
| - return new SurfaceView(context) {
|
| - @Override
|
| - public void onDraw(Canvas canvas) {
|
| - // We only need to draw to software canvases, which are used for taking screenshots.
|
| - if (canvas.isHardwareAccelerated()) return;
|
| - Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(),
|
| - Bitmap.Config.ARGB_8888);
|
| - if (nativeCompositeToBitmap(mNativeContentViewRenderView, bitmap)) {
|
| - canvas.drawBitmap(bitmap, 0, 0, null);
|
| - }
|
| - }
|
| - };
|
| + return new SurfaceView(context);
|
| }
|
|
|
| /**
|
| @@ -214,7 +201,6 @@ public class ContentViewRenderView extends FrameLayout {
|
| private native void nativeSurfaceDestroyed(long nativeContentViewRenderView);
|
| private native void nativeSurfaceChanged(long nativeContentViewRenderView,
|
| int format, int width, int height, Surface surface);
|
| - private native boolean nativeCompositeToBitmap(long nativeContentViewRenderView, Bitmap bitmap);
|
| private native void nativeSetOverlayVideoMode(long nativeContentViewRenderView,
|
| boolean enabled);
|
| }
|
|
|