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

Side by Side Diff: blimp/client/support/compositor/blimp_embedder_compositor.h

Issue 2444563002: cc: Remove "SwapBuffers" naming from LayerTreeHostSingleThreadClient (Closed)
Patch Set: swapsinglethread: fix-name-in-browsertest Created 4 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
« no previous file with comments | « ash/wm/window_animations.cc ('k') | cc/test/layer_tree_test.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 BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ 5 #ifndef BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_
6 #define BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ 6 #define BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void RequestNewCompositorFrameSink() override; 61 void RequestNewCompositorFrameSink() override;
62 void DidInitializeCompositorFrameSink() override; 62 void DidInitializeCompositorFrameSink() override;
63 void DidFailToInitializeCompositorFrameSink() override; 63 void DidFailToInitializeCompositorFrameSink() override;
64 void WillCommit() override {} 64 void WillCommit() override {}
65 void DidCommit() override {} 65 void DidCommit() override {}
66 void DidCommitAndDrawFrame() override {} 66 void DidCommitAndDrawFrame() override {}
67 void DidReceiveCompositorFrameAck() override {} 67 void DidReceiveCompositorFrameAck() override {}
68 void DidCompletePageScaleAnimation() override {} 68 void DidCompletePageScaleAnimation() override {}
69 69
70 // LayerTreeHostSingleThreadClient implementation. 70 // LayerTreeHostSingleThreadClient implementation.
71 void DidPostSwapBuffers() override {} 71 void DidSubmitCompositorFrame() override {}
72 void DidAbortSwapBuffers() override {} 72 void DidLoseCompositorFrameSink() override {}
73 73
74 private: 74 private:
75 void HandlePendingCompositorFrameSinkRequest(); 75 void HandlePendingCompositorFrameSinkRequest();
76 76
77 CompositorDependencies* compositor_dependencies_; 77 CompositorDependencies* compositor_dependencies_;
78 78
79 cc::FrameSinkId frame_sink_id_; 79 cc::FrameSinkId frame_sink_id_;
80 80
81 scoped_refptr<cc::ContextProvider> context_provider_; 81 scoped_refptr<cc::ContextProvider> context_provider_;
82 82
83 bool compositor_frame_sink_request_pending_; 83 bool compositor_frame_sink_request_pending_;
84 std::unique_ptr<cc::Display> display_; 84 std::unique_ptr<cc::Display> display_;
85 85
86 gfx::Size viewport_size_in_px_; 86 gfx::Size viewport_size_in_px_;
87 87
88 std::unique_ptr<cc::LayerTreeHost> host_; 88 std::unique_ptr<cc::LayerTreeHost> host_;
89 scoped_refptr<cc::Layer> root_layer_; 89 scoped_refptr<cc::Layer> root_layer_;
90 90
91 base::Closure did_complete_swap_buffers_; 91 base::Closure did_complete_swap_buffers_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(BlimpEmbedderCompositor); 93 DISALLOW_COPY_AND_ASSIGN(BlimpEmbedderCompositor);
94 }; 94 };
95 95
96 } // namespace client 96 } // namespace client
97 } // namespace blimp 97 } // namespace blimp
98 98
99 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ 99 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ash/wm/window_animations.cc ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698