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

Side by Side Diff: cc/surfaces/display.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « cc/scheduler/scheduler_state_machine.h ('k') | cc/surfaces/display.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_SURFACES_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "cc/output/output_surface_client.h" 11 #include "cc/output/output_surface_client.h"
12 #include "cc/output/renderer.h" 12 #include "cc/output/renderer.h"
13 #include "cc/resources/returned_resource.h" 13 #include "cc/resources/returned_resource.h"
14 #include "cc/surfaces/surface_aggregator.h" 14 #include "cc/surfaces/surface_aggregator.h"
15 #include "cc/surfaces/surface_id.h" 15 #include "cc/surfaces/surface_id.h"
16 #include "cc/surfaces/surface_manager.h" 16 #include "cc/surfaces/surface_manager.h"
17 #include "cc/surfaces/surfaces_export.h" 17 #include "cc/surfaces/surfaces_export.h"
18 #include "ui/events/latency_info.h" 18 #include "ui/events/latency_info.h"
19 19
20 namespace gpu { 20 namespace gpu {
21 class GpuMemoryBufferManager; 21 class GpuMemoryBufferManager;
22 } 22 }
23 23
24 namespace gfx { 24 namespace gfx {
25 class Size; 25 class Size;
26 } 26 }
27 27
28 namespace cc { 28 namespace cc {
29 29
30 class BlockingTaskRunner;
31 class DirectRenderer; 30 class DirectRenderer;
32 class DisplayClient; 31 class DisplayClient;
33 class OutputSurface; 32 class OutputSurface;
34 class RendererSettings; 33 class RendererSettings;
35 class ResourceProvider; 34 class ResourceProvider;
36 class SharedBitmapManager; 35 class SharedBitmapManager;
37 class Surface; 36 class Surface;
38 class SurfaceAggregator; 37 class SurfaceAggregator;
39 class SurfaceIdAllocator; 38 class SurfaceIdAllocator;
40 class SurfaceFactory; 39 class SurfaceFactory;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void DidSwapBuffersComplete() override; 74 void DidSwapBuffersComplete() override;
76 void ReclaimResources(const CompositorFrameAck* ack) override {} 75 void ReclaimResources(const CompositorFrameAck* ack) override {}
77 void DidLoseOutputSurface() override; 76 void DidLoseOutputSurface() override;
78 void SetExternalDrawConstraints( 77 void SetExternalDrawConstraints(
79 const gfx::Transform& transform, 78 const gfx::Transform& transform,
80 const gfx::Rect& viewport, 79 const gfx::Rect& viewport,
81 const gfx::Rect& clip, 80 const gfx::Rect& clip,
82 const gfx::Rect& viewport_rect_for_tile_priority, 81 const gfx::Rect& viewport_rect_for_tile_priority,
83 const gfx::Transform& transform_for_tile_priority, 82 const gfx::Transform& transform_for_tile_priority,
84 bool resourceless_software_draw) override {} 83 bool resourceless_software_draw) override {}
85 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
86 void SetTreeActivationCallback(const base::Closure& callback) override {} 84 void SetTreeActivationCallback(const base::Closure& callback) override {}
87 85
88 // RendererClient implementation. 86 // RendererClient implementation.
89 void SetFullRootLayerDamage() override {} 87 void SetFullRootLayerDamage() override {}
90 88
91 // SurfaceDamageObserver implementation. 89 // SurfaceDamageObserver implementation.
92 void OnSurfaceDamaged(SurfaceId surface, bool* changed) override; 90 void OnSurfaceDamaged(SurfaceId surface, bool* changed) override;
93 91
94 private: 92 private:
95 void InitializeRenderer(); 93 void InitializeRenderer();
96 94
97 DisplayClient* client_; 95 DisplayClient* client_;
98 SurfaceManager* manager_; 96 SurfaceManager* manager_;
99 SharedBitmapManager* bitmap_manager_; 97 SharedBitmapManager* bitmap_manager_;
100 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; 98 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
101 RendererSettings settings_; 99 RendererSettings settings_;
102 SurfaceId current_surface_id_; 100 SurfaceId current_surface_id_;
103 gfx::Size current_surface_size_; 101 gfx::Size current_surface_size_;
104 float device_scale_factor_; 102 float device_scale_factor_;
105 scoped_ptr<OutputSurface> output_surface_; 103 scoped_ptr<OutputSurface> output_surface_;
106 scoped_ptr<ResourceProvider> resource_provider_; 104 scoped_ptr<ResourceProvider> resource_provider_;
107 scoped_ptr<SurfaceAggregator> aggregator_; 105 scoped_ptr<SurfaceAggregator> aggregator_;
108 scoped_ptr<DirectRenderer> renderer_; 106 scoped_ptr<DirectRenderer> renderer_;
109 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_;
110 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 107 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
111 std::vector<ui::LatencyInfo> stored_latency_info_; 108 std::vector<ui::LatencyInfo> stored_latency_info_;
112 109
113 DISALLOW_COPY_AND_ASSIGN(Display); 110 DISALLOW_COPY_AND_ASSIGN(Display);
114 }; 111 };
115 112
116 } // namespace cc 113 } // namespace cc
117 114
118 #endif // CC_SURFACES_DISPLAY_H_ 115 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_state_machine.h ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698