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

Side by Side Diff: ui/compositor/compositor.h

Issue 675083002: Add cc::RendererSettings for use in with cc::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 20 matching lines...) Expand all
31 class MessageLoopProxy; 31 class MessageLoopProxy;
32 class RunLoop; 32 class RunLoop;
33 } 33 }
34 34
35 namespace cc { 35 namespace cc {
36 class ContextProvider; 36 class ContextProvider;
37 class GpuMemoryBufferManager; 37 class GpuMemoryBufferManager;
38 class Layer; 38 class Layer;
39 class LayerTreeDebugState; 39 class LayerTreeDebugState;
40 class LayerTreeHost; 40 class LayerTreeHost;
41 class LayerTreeSettings;
41 class SharedBitmapManager; 42 class SharedBitmapManager;
42 class SurfaceIdAllocator; 43 class SurfaceIdAllocator;
43 } 44 }
44 45
45 namespace gfx { 46 namespace gfx {
46 class Rect; 47 class Rect;
47 class Size; 48 class Size;
48 } 49 }
49 50
50 namespace gpu { 51 namespace gpu {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 void DidPostSwapBuffers() override; 262 void DidPostSwapBuffers() override;
262 void DidAbortSwapBuffers() override; 263 void DidAbortSwapBuffers() override;
263 264
264 int last_started_frame() { return last_started_frame_; } 265 int last_started_frame() { return last_started_frame_; }
265 int last_ended_frame() { return last_ended_frame_; } 266 int last_ended_frame() { return last_ended_frame_; }
266 267
267 bool IsLocked() { return compositor_lock_ != NULL; } 268 bool IsLocked() { return compositor_lock_ != NULL; }
268 269
269 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; 270 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const;
270 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); 271 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state);
272 const cc::LayerTreeSettings& GetLayerTreeSettings() const;
jamesr 2014/10/27 05:11:37 the only caller needs the RendererSettings, not LT
271 273
272 LayerAnimatorCollection* layer_animator_collection() { 274 LayerAnimatorCollection* layer_animator_collection() {
273 return &layer_animator_collection_; 275 return &layer_animator_collection_;
274 } 276 }
275 277
276 // Inserts a SurfaceSequence that will be satisfied on the next frame this 278 // Inserts a SurfaceSequence that will be satisfied on the next frame this
277 // compositor commits and swaps. 279 // compositor commits and swaps.
278 cc::SurfaceSequence InsertSurfaceSequenceForNextFrame(); 280 cc::SurfaceSequence InsertSurfaceSequenceForNextFrame();
279 281
280 cc::SurfaceIdAllocator* surface_id_allocator() { 282 cc::SurfaceIdAllocator* surface_id_allocator() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 LayerAnimatorCollection layer_animator_collection_; 340 LayerAnimatorCollection layer_animator_collection_;
339 341
340 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 342 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
341 343
342 DISALLOW_COPY_AND_ASSIGN(Compositor); 344 DISALLOW_COPY_AND_ASSIGN(Compositor);
343 }; 345 };
344 346
345 } // namespace ui 347 } // namespace ui
346 348
347 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 349 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698