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: components/mus/ws/platform_display.h

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests Created 4 years, 5 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 | « components/mus/surfaces/display_compositor.cc ('k') | components/mus/ws/platform_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 COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ 5 #ifndef COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_
6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ 6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // This method initiates a top level redraw of the display. 143 // This method initiates a top level redraw of the display.
144 // TODO(fsamuel): This should use vblank as a signal rather than a timer 144 // TODO(fsamuel): This should use vblank as a signal rather than a timer
145 // http://crbug.com/533042 145 // http://crbug.com/533042
146 void Draw(); 146 void Draw();
147 147
148 // This is called after cc::Display has completed generating a new frame 148 // This is called after cc::Display has completed generating a new frame
149 // for the display. TODO(fsamuel): Idle time processing should happen here 149 // for the display. TODO(fsamuel): Idle time processing should happen here
150 // if there is budget for it. 150 // if there is budget for it.
151 void DidDraw(cc::SurfaceDrawStatus status); 151 void DidDraw(cc::SurfaceDrawStatus status);
152 void UpdateMetrics(const gfx::Size& size, float device_scale_factor); 152 void UpdateMetrics(const gfx::Size& size, float device_scale_factor);
153 std::unique_ptr<cc::CompositorFrame> GenerateCompositorFrame(); 153 cc::CompositorFrame GenerateCompositorFrame();
154 154
155 // ui::PlatformWindowDelegate: 155 // ui::PlatformWindowDelegate:
156 void OnBoundsChanged(const gfx::Rect& new_bounds) override; 156 void OnBoundsChanged(const gfx::Rect& new_bounds) override;
157 void OnDamageRect(const gfx::Rect& damaged_region) override; 157 void OnDamageRect(const gfx::Rect& damaged_region) override;
158 void DispatchEvent(ui::Event* event) override; 158 void DispatchEvent(ui::Event* event) override;
159 void OnCloseRequest() override; 159 void OnCloseRequest() override;
160 void OnClosed() override; 160 void OnClosed() override;
161 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 161 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
162 void OnLostCapture() override; 162 void OnLostCapture() override;
163 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 163 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
(...skipping 22 matching lines...) Expand all
186 base::WeakPtrFactory<DefaultPlatformDisplay> weak_factory_; 186 base::WeakPtrFactory<DefaultPlatformDisplay> weak_factory_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); 188 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay);
189 }; 189 };
190 190
191 } // namespace ws 191 } // namespace ws
192 192
193 } // namespace mus 193 } // namespace mus
194 194
195 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ 195 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_
OLDNEW
« no previous file with comments | « components/mus/surfaces/display_compositor.cc ('k') | components/mus/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698