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

Side by Side Diff: ui/views/mus/surface_context_factory.h

Issue 2247123002: views/mus: Use the GpuMemoryBufferManager from GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_ 5 #ifndef UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
6 #define UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_ 6 #define UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "services/ui/public/cpp/mojo_gpu_memory_buffer_manager.h"
12 #include "services/ui/public/cpp/raster_thread_helper.h" 11 #include "services/ui/public/cpp/raster_thread_helper.h"
13 #include "services/ui/public/interfaces/window_tree.mojom.h" 12 #include "services/ui/public/interfaces/window_tree.mojom.h"
14 #include "ui/compositor/compositor.h" 13 #include "ui/compositor/compositor.h"
15 #include "ui/views/mus/mus_export.h" 14 #include "ui/views/mus/mus_export.h"
16 15
17 namespace ui { 16 namespace ui {
18 class GpuService; 17 class GpuService;
19 } 18 }
20 19
21 namespace views { 20 namespace views {
(...skipping 28 matching lines...) Expand all
50 base::TimeDelta interval) override {} 49 base::TimeDelta interval) override {}
51 void SetDisplayVSyncParameters(ui::Compositor* compositor, 50 void SetDisplayVSyncParameters(ui::Compositor* compositor,
52 base::TimeTicks timebase, 51 base::TimeTicks timebase,
53 base::TimeDelta interval) override {} 52 base::TimeDelta interval) override {}
54 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {} 53 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {}
55 void AddObserver(ui::ContextFactoryObserver* observer) override {} 54 void AddObserver(ui::ContextFactoryObserver* observer) override {}
56 void RemoveObserver(ui::ContextFactoryObserver* observer) override {} 55 void RemoveObserver(ui::ContextFactoryObserver* observer) override {}
57 56
58 uint32_t next_surface_id_namespace_; 57 uint32_t next_surface_id_namespace_;
59 ui::RasterThreadHelper raster_thread_helper_; 58 ui::RasterThreadHelper raster_thread_helper_;
60 ui::MojoGpuMemoryBufferManager gpu_memory_buffer_manager_;
61 ui::GpuService* gpu_service_; 59 ui::GpuService* gpu_service_;
62 60
63 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory); 61 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
64 }; 62 };
65 63
66 } // namespace views 64 } // namespace views
67 65
68 #endif // UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_ 66 #endif // UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698