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

Side by Side Diff: android_webview/browser/gpu_memory_buffer_impl.cc

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Add missing parameter in GLES2Implementation ctor in GLES2Implementation unittest Created 7 years, 7 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
« no previous file with comments | « no previous file | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "android_webview/browser/gpu_memory_buffer_impl.h" 5 #include "android_webview/browser/gpu_memory_buffer_impl.h"
6 6
7 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" 7 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
8 #include "android_webview/public/browser/draw_gl.h" 8 #include "android_webview/public/browser/draw_gl.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 57
58 bool GpuMemoryBufferImpl::IsMapped() { 58 bool GpuMemoryBufferImpl::IsMapped() {
59 return mapped_; 59 return mapped_;
60 } 60 }
61 61
62 // static 62 // static
63 void GpuMemoryBufferImpl::SetAwDrawGLFunctionTable( 63 void GpuMemoryBufferImpl::SetAwDrawGLFunctionTable(
64 AwDrawGLFunctionTable* table) { 64 AwDrawGLFunctionTable* table) {
65 g_gl_draw_functions = table; 65 g_gl_draw_functions = table;
66 gpu::SetProcessDefaultGpuMemoryBufferFactory( 66 gpu::gles2::SetProcessDefaultGpuMemoryBufferFactory(
67 base::Bind(&CreateGpuMemoryBuffer)); 67 base::Bind(&CreateGpuMemoryBuffer));
68 } 68 }
69 69
70 } // namespace android_webview 70 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698