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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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_unittest.cc ('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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 #include "cc/output/renderer.h" 10 #include "cc/output/renderer.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const gfx::Rect& viewport_rect_for_tile_priority, 75 const gfx::Rect& viewport_rect_for_tile_priority,
76 const gfx::Transform& transform_for_tile_priority, 76 const gfx::Transform& transform_for_tile_priority,
77 bool resourceless_software_draw) override {} 77 bool resourceless_software_draw) override {}
78 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 78 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
79 void SetTreeActivationCallback(const base::Closure& callback) override {} 79 void SetTreeActivationCallback(const base::Closure& callback) override {}
80 80
81 // RendererClient implementation. 81 // RendererClient implementation.
82 void SetFullRootLayerDamage() override {} 82 void SetFullRootLayerDamage() override {}
83 83
84 // SurfaceDamageObserver implementation. 84 // SurfaceDamageObserver implementation.
85 void OnSurfaceDamaged(SurfaceId surface) override; 85 void OnSurfaceDamaged(SurfaceId surface, bool* changed) override;
86 86
87 private: 87 private:
88 void InitializeRenderer(); 88 void InitializeRenderer();
89 89
90 DisplayClient* client_; 90 DisplayClient* client_;
91 SurfaceManager* manager_; 91 SurfaceManager* manager_;
92 SharedBitmapManager* bitmap_manager_; 92 SharedBitmapManager* bitmap_manager_;
93 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; 93 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
94 RendererSettings settings_; 94 RendererSettings settings_;
95 SurfaceId current_surface_id_; 95 SurfaceId current_surface_id_;
96 gfx::Size current_surface_size_; 96 gfx::Size current_surface_size_;
97 float device_scale_factor_; 97 float device_scale_factor_;
98 scoped_ptr<OutputSurface> output_surface_; 98 scoped_ptr<OutputSurface> output_surface_;
99 scoped_ptr<ResourceProvider> resource_provider_; 99 scoped_ptr<ResourceProvider> resource_provider_;
100 scoped_ptr<SurfaceAggregator> aggregator_; 100 scoped_ptr<SurfaceAggregator> aggregator_;
101 scoped_ptr<DirectRenderer> renderer_; 101 scoped_ptr<DirectRenderer> renderer_;
102 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_; 102 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_;
103 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 103 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(Display); 105 DISALLOW_COPY_AND_ASSIGN(Display);
106 }; 106 };
107 107
108 } // namespace cc 108 } // namespace cc
109 109
110 #endif // CC_SURFACES_DISPLAY_H_ 110 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698