| 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/common/gpu/gpu_process_launch_causes.h" | 9 #include "content/common/gpu/gpu_process_launch_causes.h" |
| 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 context_->deleteTexture(handle.parent_texture_id[0]); | 67 context_->deleteTexture(handle.parent_texture_id[0]); |
| 68 context_->deleteTexture(handle.parent_texture_id[1]); | 68 context_->deleteTexture(handle.parent_texture_id[1]); |
| 69 context_->finish(); | 69 context_->finish(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 uint32_t ImageTransportFactoryAndroid::InsertSyncPoint() { | 72 uint32_t ImageTransportFactoryAndroid::InsertSyncPoint() { |
| 73 return context_->insertSyncPoint(); | 73 return context_->insertSyncPoint(); |
| 74 } | 74 } |
| 75 | 75 |
| 76 WebGraphicsContext3DCommandBufferImpl* |
| 77 ImageTransportFactoryAndroid::GetContext3D() { |
| 78 return context_.get(); |
| 79 } |
| 80 |
| 76 } // namespace content | 81 } // namespace content |
| OLD | NEW |