| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ | 5 #ifndef UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ |
| 6 #define UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ | 6 #define UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "cc/surfaces/frame_sink_id.h" | 10 #include "cc/surfaces/frame_sink_id.h" |
| 11 #include "ui/android/ui_android_export.h" | 11 #include "ui/android/ui_android_export.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 class ContextProvider; | 14 class ContextProvider; |
| 15 class GpuMemoryBufferManager; | |
| 16 class VulkanContextProvider; | 15 class VulkanContextProvider; |
| 17 class SharedBitmapManager; | 16 class SharedBitmapManager; |
| 18 class SurfaceManager; | 17 class SurfaceManager; |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace gpu { | 20 namespace gpu { |
| 22 namespace gles2 { | 21 namespace gles2 { |
| 23 struct ContextCreationAttribHelper; | 22 struct ContextCreationAttribHelper; |
| 24 } // namespace gles | 23 } // namespace gles |
| 25 | 24 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 gpu::gles2::ContextCreationAttribHelper attributes, | 75 gpu::gles2::ContextCreationAttribHelper attributes, |
| 77 bool support_locking, | 76 bool support_locking, |
| 78 bool automatic_flushes, | 77 bool automatic_flushes, |
| 79 cc::ContextProvider* shared_context_provider, | 78 cc::ContextProvider* shared_context_provider, |
| 80 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) = 0; | 79 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) = 0; |
| 81 | 80 |
| 82 virtual cc::SurfaceManager* GetSurfaceManager() = 0; | 81 virtual cc::SurfaceManager* GetSurfaceManager() = 0; |
| 83 | 82 |
| 84 virtual cc::FrameSinkId AllocateFrameSinkId() = 0; | 83 virtual cc::FrameSinkId AllocateFrameSinkId() = 0; |
| 85 | 84 |
| 86 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | |
| 87 | |
| 88 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 85 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 89 }; | 86 }; |
| 90 | 87 |
| 91 } // namespace ui | 88 } // namespace ui |
| 92 | 89 |
| 93 #endif // UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ | 90 #endif // UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ |
| OLD | NEW |