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

Side by Side Diff: blimp/client/app/compositor/browser_compositor.h

Issue 2286273003: Make cc::Display not own its BeginFrameSource (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | blimp/client/app/compositor/browser_compositor.cc » ('j') | cc/surfaces/display.h » ('J')
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 BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ 5 #ifndef BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
6 #define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ 6 #define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "cc/scheduler/begin_frame_source.h"
10 #include "cc/trees/layer_tree_host_client.h" 11 #include "cc/trees/layer_tree_host_client.h"
11 #include "cc/trees/layer_tree_host_single_thread_client.h" 12 #include "cc/trees/layer_tree_host_single_thread_client.h"
12 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
13 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
14 15
15 namespace cc { 16 namespace cc {
16 class Display; 17 class Display;
17 class Layer; 18 class Layer;
18 class LayerTreeHost; 19 class LayerTreeHost;
19 class SurfaceIdAllocator; 20 class SurfaceIdAllocator;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // LayerTreeHostSingleThreadClient implementation. 80 // LayerTreeHostSingleThreadClient implementation.
80 void DidPostSwapBuffers() override {} 81 void DidPostSwapBuffers() override {}
81 void DidAbortSwapBuffers() override {} 82 void DidAbortSwapBuffers() override {}
82 83
83 void HandlePendingOutputSurfaceRequest(); 84 void HandlePendingOutputSurfaceRequest();
84 85
85 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 86 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
86 gfx::AcceleratedWidget widget_; 87 gfx::AcceleratedWidget widget_;
87 bool output_surface_request_pending_; 88 bool output_surface_request_pending_;
88 std::unique_ptr<cc::Display> display_; 89 std::unique_ptr<cc::Display> display_;
90 std::unique_ptr<cc::SyntheticBeginFrameSource> begin_frame_source_;
89 91
90 gfx::Size viewport_size_in_px_; 92 gfx::Size viewport_size_in_px_;
91 93
92 std::unique_ptr<cc::LayerTreeHost> host_; 94 std::unique_ptr<cc::LayerTreeHost> host_;
93 scoped_refptr<cc::Layer> root_layer_; 95 scoped_refptr<cc::Layer> root_layer_;
94 96
95 base::Closure did_complete_swap_buffers_; 97 base::Closure did_complete_swap_buffers_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(BrowserCompositor); 99 DISALLOW_COPY_AND_ASSIGN(BrowserCompositor);
98 }; 100 };
99 101
100 } // namespace client 102 } // namespace client
101 } // namespace blimp 103 } // namespace blimp
102 104
103 #endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ 105 #endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/app/compositor/browser_compositor.cc » ('j') | cc/surfaces/display.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698