Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: gpu/command_buffer/service/async_pixel_transfer_manager_android.cc

Issue 414503004: android: Use hw acceleration in android_webview_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "gpu/command_buffer/service/async_pixel_transfer_manager_egl.h" 9 #include "gpu/command_buffer/service/async_pixel_transfer_manager_egl.h"
10 #include "gpu/command_buffer/service/async_pixel_transfer_manager_idle.h" 10 #include "gpu/command_buffer/service/async_pixel_transfer_manager_idle.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 AsyncPixelTransferManager* AsyncPixelTransferManager::Create( 52 AsyncPixelTransferManager* AsyncPixelTransferManager::Create(
53 gfx::GLContext* context) { 53 gfx::GLContext* context) {
54 TRACE_EVENT0("gpu", "AsyncPixelTransferManager::Create"); 54 TRACE_EVENT0("gpu", "AsyncPixelTransferManager::Create");
55 switch (gfx::GetGLImplementation()) { 55 switch (gfx::GetGLImplementation()) {
56 case gfx::kGLImplementationEGLGLES2: 56 case gfx::kGLImplementationEGLGLES2:
57 DCHECK(context); 57 DCHECK(context);
58 if (context->HasExtension("EGL_KHR_fence_sync") && 58 if (context->HasExtension("EGL_KHR_fence_sync") &&
59 context->HasExtension("EGL_KHR_image") && 59 context->HasExtension("EGL_KHR_image") &&
60 context->HasExtension("EGL_KHR_image_base") && 60 context->HasExtension("EGL_KHR_image_base") &&
61 context->HasExtension("EGL_KHR_gl_texture_2D_image") && 61 context->HasExtension("EGL_KHR_gl_texture_2D_image") &&
62 context->HasExtension("GL_OES_EGL_image") && 62 context->HasExtension("GL_OES_EGL_image") && false &&
no sievers 2014/07/22 20:53:18 using egl image here might cause issues with mailb
63 !IsBroadcom() && 63 !IsBroadcom() &&
64 !IsImagination() && 64 !IsImagination() &&
65 !IsNvidia31() && 65 !IsNvidia31() &&
66 !base::SysInfo::IsLowEndDevice()) { 66 !base::SysInfo::IsLowEndDevice()) {
67 return new AsyncPixelTransferManagerEGL; 67 return new AsyncPixelTransferManagerEGL;
68 } 68 }
69 return new AsyncPixelTransferManagerIdle; 69 return new AsyncPixelTransferManagerIdle;
70 case gfx::kGLImplementationOSMesaGL: 70 case gfx::kGLImplementationOSMesaGL:
71 return new AsyncPixelTransferManagerIdle; 71 return new AsyncPixelTransferManagerIdle;
72 case gfx::kGLImplementationMockGL: 72 case gfx::kGLImplementationMockGL:
73 return new AsyncPixelTransferManagerStub; 73 return new AsyncPixelTransferManagerStub;
74 default: 74 default:
75 NOTREACHED(); 75 NOTREACHED();
76 return NULL; 76 return NULL;
77 } 77 }
78 } 78 }
79 79
80 } // namespace gpu 80 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698