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

Unified Diff: android_webview/browser/gpu_memory_buffer_factory_impl.cc

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add GpuControl interface Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/gpu_memory_buffer_factory_impl.cc
diff --git a/android_webview/browser/gpu_memory_buffer_factory_impl.cc b/android_webview/browser/gpu_memory_buffer_factory_impl.cc
index c4a6cac748e9049bc47f535831c0b0fb25e84b41..d1a15b300ca18019e56bc00e36455495b3e6ff6b 100644
--- a/android_webview/browser/gpu_memory_buffer_factory_impl.cc
+++ b/android_webview/browser/gpu_memory_buffer_factory_impl.cc
@@ -87,9 +87,8 @@ gfx::GpuMemoryBuffer* GpuMemoryBufferFactoryImpl::CreateGpuMemoryBuffer(
size_t width,
size_t height,
unsigned internalformat) {
- // For Android WebView we assume the |internalformat| will always be
- // GL_RGBA8_OES.
- CHECK_EQ(static_cast<GLenum>(GL_RGBA8_OES), internalformat);
+ // For Android WebView we assume the |internalformat| will always be GL_RGBA.
+ CHECK_EQ(static_cast<GLenum>(GL_RGBA), internalformat);
CHECK(g_gl_draw_functions);
int buffer_id = g_gl_draw_functions->create_graphic_buffer(width, height);
if (!buffer_id)
« no previous file with comments | « no previous file | android_webview/lib/main/aw_main_delegate.cc » ('j') | content/common/gpu/client/command_buffer_proxy_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698