Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Side by Side Diff: mandoline/ui/aura/surface_context_factory.h

Issue 1181013010: Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit warning Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
8 #include "mandoline/ui/aura/surface_binding.h" 10 #include "mandoline/ui/aura/surface_binding.h"
9 #include "ui/compositor/compositor.h" 11 #include "ui/compositor/compositor.h"
10 12
11 namespace mojo { 13 namespace mojo {
12 class Shell; 14 class Shell;
13 class View; 15 class View;
14 } 16 }
15 17
16 namespace mandoline { 18 namespace mandoline {
17 19
(...skipping 16 matching lines...) Expand all
34 gfx::GpuMemoryBuffer::Usage usage) override; 36 gfx::GpuMemoryBuffer::Usage usage) override;
35 cc::SharedBitmapManager* GetSharedBitmapManager() override; 37 cc::SharedBitmapManager* GetSharedBitmapManager() override;
36 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 38 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
37 cc::TaskGraphRunner* GetTaskGraphRunner() override; 39 cc::TaskGraphRunner* GetTaskGraphRunner() override;
38 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 40 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
39 void ResizeDisplay(ui::Compositor* compositor, 41 void ResizeDisplay(ui::Compositor* compositor,
40 const gfx::Size& size) override; 42 const gfx::Size& size) override;
41 43
42 SurfaceBinding surface_binding_; 44 SurfaceBinding surface_binding_;
43 uint32_t next_surface_id_namespace_; 45 uint32_t next_surface_id_namespace_;
46 gles2::RasterThreadHelper raster_thread_helper_;
47 gles2::MojoGpuMemoryBufferManager gpu_memory_buffer_manager_;
44 48
45 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory); 49 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
46 }; 50 };
47 51
48 } // namespace mandoline 52 } // namespace mandoline
49 53
50 #endif // MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ 54 #endif // MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698