OLD | NEW |
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 Loading... |
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 |
OLD | NEW |