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

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

Issue 2238693002: Plumb SetVisible from ui::Compositor to the DirectRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: setvisible-browser: onemore 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 | « ui/compositor/DEPS ('k') | ui/compositor/compositor.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 (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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // Gets the task graph runner. 134 // Gets the task graph runner.
135 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; 135 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
136 136
137 // Allocate a new client ID for the display compositor. 137 // Allocate a new client ID for the display compositor.
138 virtual uint32_t AllocateSurfaceClientId() = 0; 138 virtual uint32_t AllocateSurfaceClientId() = 0;
139 139
140 // Gets the surface manager. 140 // Gets the surface manager.
141 virtual cc::SurfaceManager* GetSurfaceManager() = 0; 141 virtual cc::SurfaceManager* GetSurfaceManager() = 0;
142 142
143 // Inform the display corresponding to this compositor if it is visible. When
144 // false it does not need to produce any frames. Visibility is reset for each
145 // call to CreateOutputSurface.
146 virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0;
147
143 // Resize the display corresponding to this compositor to a particular size. 148 // Resize the display corresponding to this compositor to a particular size.
144 virtual void ResizeDisplay(ui::Compositor* compositor, 149 virtual void ResizeDisplay(ui::Compositor* compositor,
145 const gfx::Size& size) = 0; 150 const gfx::Size& size) = 0;
146 151
147 // Set the output color profile into which this compositor should render. 152 // Set the output color profile into which this compositor should render.
148 virtual void SetDisplayColorSpace(ui::Compositor* compositor, 153 virtual void SetDisplayColorSpace(ui::Compositor* compositor,
149 const gfx::ColorSpace& color_space) = 0; 154 const gfx::ColorSpace& color_space) = 0;
150 155
151 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 156 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
152 base::TimeDelta interval) = 0; 157 base::TimeDelta interval) = 0;
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 scoped_refptr<cc::AnimationTimeline> animation_timeline_; 429 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
425 430
426 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 431 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
427 432
428 DISALLOW_COPY_AND_ASSIGN(Compositor); 433 DISALLOW_COPY_AND_ASSIGN(Compositor);
429 }; 434 };
430 435
431 } // namespace ui 436 } // namespace ui
432 437
433 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 438 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ui/compositor/DEPS ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698