| Index: android_webview/browser/in_process_view_renderer.cc
|
| diff --git a/android_webview/browser/in_process_view_renderer.cc b/android_webview/browser/in_process_view_renderer.cc
|
| index 353d4c0231aa9bd6ee37cf1af69c319eedafd964..555fc299277d6be9f1f82475496053b611233a3c 100644
|
| --- a/android_webview/browser/in_process_view_renderer.cc
|
| +++ b/android_webview/browser/in_process_view_renderer.cc
|
| @@ -316,8 +316,7 @@ void InProcessViewRenderer::WebContentsGone() {
|
| bool InProcessViewRenderer::PrepareDrawGL(int x, int y) {
|
| // No harm in updating |hw_rendering_scroll_| even if we return false.
|
| hw_rendering_scroll_ = gfx::Point(x, y);
|
| - return attached_to_window_ && compositor_ && compositor_->IsHwReady() &&
|
| - !hardware_failed_;
|
| + return attached_to_window_ && compositor_ && !hardware_failed_;
|
| }
|
|
|
| void InProcessViewRenderer::DrawGL(AwDrawGLInfo* draw_info) {
|
| @@ -334,9 +333,12 @@ void InProcessViewRenderer::DrawGL(AwDrawGLInfo* draw_info) {
|
| GLStateRestore state_restore;
|
|
|
| if (attached_to_window_ && compositor_ && !hardware_initialized_) {
|
| - // TODO(boliu): Actually initialize the compositor GL path.
|
| + hardware_failed_ = !compositor_->InitializeHwDraw();
|
| hardware_initialized_ = true;
|
| egl_context_at_init_ = current_context;
|
| +
|
| + if (hardware_failed_)
|
| + return;
|
| }
|
|
|
| if (draw_info->mode == AwDrawGLInfo::kModeProcess)
|
|
|