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

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

Issue 16046003: Move webkit/gpu into webkit/common/gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in content/common/gpu/client/gl_helper_* 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 | Annotate | Revision Log
« no previous file with comments | « android_webview/android_webview.gyp ('k') | android_webview/lib/main/aw_main_delegate.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/public/browser/draw_gl.h" 7 #include "android_webview/public/browser/draw_gl.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "gpu/command_buffer/client/gpu_memory_buffer.h" 10 #include "gpu/command_buffer/client/gpu_memory_buffer.h"
11 #include "ui/gfx/size.h" 11 #include "ui/gfx/size.h"
12 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" 12 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
13 13
14 namespace android_webview { 14 namespace android_webview {
15 15
16 // Provides hardware rendering functions from the Android glue layer. 16 // Provides hardware rendering functions from the Android glue layer.
17 AwDrawGLFunctionTable* g_gl_draw_functions = NULL; 17 AwDrawGLFunctionTable* g_gl_draw_functions = NULL;
18 18
19 GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::Size size) 19 GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::Size size)
20 : buffer_id_(g_gl_draw_functions->create_graphic_buffer( 20 : buffer_id_(g_gl_draw_functions->create_graphic_buffer(
21 size.width(), size.height())), 21 size.width(), size.height())),
22 size_(size), 22 size_(size),
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // static 92 // static
93 void GpuMemoryBufferImpl::SetAwDrawGLFunctionTable( 93 void GpuMemoryBufferImpl::SetAwDrawGLFunctionTable(
94 AwDrawGLFunctionTable* table) { 94 AwDrawGLFunctionTable* table) {
95 g_gl_draw_functions = table; 95 g_gl_draw_functions = table;
96 ::webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl:: 96 ::webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl::
97 SetGpuMemoryBufferCreator(&CreateGpuMemoryBuffer); 97 SetGpuMemoryBufferCreator(&CreateGpuMemoryBuffer);
98 } 98 }
99 99
100 } // namespace android_webview 100 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/android_webview.gyp ('k') | android_webview/lib/main/aw_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698