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

Side by Side Diff: services/ui/ws/frame_generator.h

Issue 2167713002: cc: Delete SurfaceDrawStatus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Scott's comments 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 | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/ws/frame_generator.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_WS_FRAME_GENERATOR_H_ 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_H_
6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_ 6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/timer/timer.h" 11 #include "base/timer/timer.h"
12 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 14
15 namespace cc { 15 namespace cc {
16 class CompositorFrame; 16 class CompositorFrame;
17 class CopyOutputRequest; 17 class CopyOutputRequest;
18 class RenderPass; 18 class RenderPass;
19 enum class SurfaceDrawStatus;
20 } 19 }
21 20
22 namespace ui { 21 namespace ui {
23 22
24 class DisplayCompositor; 23 class DisplayCompositor;
25 class GpuState; 24 class GpuState;
26 class SurfacesState; 25 class SurfacesState;
27 26
28 namespace ws { 27 namespace ws {
29 28
(...skipping 27 matching lines...) Expand all
57 void WantToDraw(); 56 void WantToDraw();
58 57
59 // This method initiates a top level redraw of the display. 58 // This method initiates a top level redraw of the display.
60 // TODO(fsamuel): This should use vblank as a signal rather than a timer 59 // TODO(fsamuel): This should use vblank as a signal rather than a timer
61 // http://crbug.com/533042 60 // http://crbug.com/533042
62 void Draw(); 61 void Draw();
63 62
64 // This is called after the DisplayCompositor has completed generating a new 63 // This is called after the DisplayCompositor has completed generating a new
65 // frame for the display. TODO(fsamuel): Idle time processing should happen 64 // frame for the display. TODO(fsamuel): Idle time processing should happen
66 // here if there is budget for it. 65 // here if there is budget for it.
67 void DidDraw(cc::SurfaceDrawStatus status); 66 void DidDraw();
68 67
69 // Generates the CompositorFrame for the current |dirty_rect_|. 68 // Generates the CompositorFrame for the current |dirty_rect_|.
70 cc::CompositorFrame GenerateCompositorFrame(); 69 cc::CompositorFrame GenerateCompositorFrame();
71 70
72 // DrawWindowTree recursively visits ServerWindows, creating a SurfaceDrawQuad 71 // DrawWindowTree recursively visits ServerWindows, creating a SurfaceDrawQuad
73 // for each that lacks one. 72 // for each that lacks one.
74 void DrawWindowTree(cc::RenderPass* pass, 73 void DrawWindowTree(cc::RenderPass* pass,
75 ServerWindow* window, 74 ServerWindow* window,
76 const gfx::Vector2d& parent_to_root_origin_offset, 75 const gfx::Vector2d& parent_to_root_origin_offset,
77 float opacity); 76 float opacity);
(...skipping 13 matching lines...) Expand all
91 base::WeakPtrFactory<FrameGenerator> weak_factory_; 90 base::WeakPtrFactory<FrameGenerator> weak_factory_;
92 91
93 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); 92 DISALLOW_COPY_AND_ASSIGN(FrameGenerator);
94 }; 93 };
95 94
96 } // namespace ws 95 } // namespace ws
97 96
98 } // namespace ui 97 } // namespace ui
99 98
100 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ 99 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698