OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ | 5 #ifndef MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ |
6 #define MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ | 6 #define MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ |
7 | 7 |
8 #include "components/view_manager/gles2/mojo_gpu_memory_buffer_manager.h" | |
9 #include "components/view_manager/gles2/raster_thread_helper.h" | |
10 #include "mandoline/ui/aura/surface_binding.h" | 8 #include "mandoline/ui/aura/surface_binding.h" |
11 #include "ui/compositor/compositor.h" | 9 #include "ui/compositor/compositor.h" |
12 | 10 |
13 namespace mojo { | 11 namespace mojo { |
14 class Shell; | 12 class Shell; |
15 class View; | 13 class View; |
16 } | 14 } |
17 | 15 |
18 namespace mandoline { | 16 namespace mandoline { |
19 | 17 |
(...skipping 16 matching lines...) Expand all Loading... |
36 gfx::GpuMemoryBuffer::Usage usage) override; | 34 gfx::GpuMemoryBuffer::Usage usage) override; |
37 cc::SharedBitmapManager* GetSharedBitmapManager() override; | 35 cc::SharedBitmapManager* GetSharedBitmapManager() override; |
38 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; | 36 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; |
39 cc::TaskGraphRunner* GetTaskGraphRunner() override; | 37 cc::TaskGraphRunner* GetTaskGraphRunner() override; |
40 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; | 38 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; |
41 void ResizeDisplay(ui::Compositor* compositor, | 39 void ResizeDisplay(ui::Compositor* compositor, |
42 const gfx::Size& size) override; | 40 const gfx::Size& size) override; |
43 | 41 |
44 SurfaceBinding surface_binding_; | 42 SurfaceBinding surface_binding_; |
45 uint32_t next_surface_id_namespace_; | 43 uint32_t next_surface_id_namespace_; |
46 gles2::RasterThreadHelper raster_thread_helper_; | |
47 gles2::MojoGpuMemoryBufferManager gpu_memory_buffer_manager_; | |
48 | 44 |
49 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory); | 45 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory); |
50 }; | 46 }; |
51 | 47 |
52 } // namespace mandoline | 48 } // namespace mandoline |
53 | 49 |
54 #endif // MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ | 50 #endif // MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ |
OLD | NEW |