| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/renderer_host/image_transport_factory_android.h" | 5 #include "content/browser/renderer_host/image_transport_factory_android.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 8 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
| 9 #include "content/browser/renderer_host/compositor_impl_android.h" | 9 #include "content/browser/renderer_host/compositor_impl_android.h" |
| 10 #include "content/common/gpu/gpu_process_launch_causes.h" | 10 #include "content/common/gpu/gpu_process_launch_causes.h" |
| 11 #include "content/common/gpu/client/gl_helper.h" | 11 #include "content/common/gpu/client/gl_helper.h" |
| 12 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 12 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 13 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 14 #include "third_party/khronos/GLES2/gl2.h" | 14 #include "third_party/khronos/GLES2/gl2.h" |
| 15 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 15 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 static ImageTransportFactoryAndroid* g_factory = NULL; | 21 static ImageTransportFactoryAndroid* g_factory = NULL; |
| 22 | 22 |
| 23 class DirectGLImageTransportFactory : public ImageTransportFactoryAndroid { | 23 class DirectGLImageTransportFactory : public ImageTransportFactoryAndroid { |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 return g_factory; | 180 return g_factory; |
| 181 } | 181 } |
| 182 | 182 |
| 183 ImageTransportFactoryAndroid::ImageTransportFactoryAndroid() { | 183 ImageTransportFactoryAndroid::ImageTransportFactoryAndroid() { |
| 184 } | 184 } |
| 185 | 185 |
| 186 ImageTransportFactoryAndroid::~ImageTransportFactoryAndroid() { | 186 ImageTransportFactoryAndroid::~ImageTransportFactoryAndroid() { |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace content | 189 } // namespace content |
| OLD | NEW |