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

Side by Side Diff: cc/trees/threaded_channel.h

Issue 1418953002: cc: Send shared variables between main and impl side using the channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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 | « cc/trees/thread_proxy.cc ('k') | cc/trees/threaded_channel.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CC_TREES_THREADED_CHANNEL_H_ 5 #ifndef CC_TREES_THREADED_CHANNEL_H_
6 #define CC_TREES_THREADED_CHANNEL_H_ 6 #define CC_TREES_THREADED_CHANNEL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; 89 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override;
90 void SetVisibleOnImpl(bool visible) override; 90 void SetVisibleOnImpl(bool visible) override;
91 91
92 // Blocking calls to ProxyImpl 92 // Blocking calls to ProxyImpl
93 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; 93 void FinishAllRenderingOnImpl(CompletionEvent* completion) override;
94 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; 94 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override;
95 void FinishGLOnImpl(CompletionEvent* completion) override; 95 void FinishGLOnImpl(CompletionEvent* completion) override;
96 void MainFrameWillHappenOnImplForTesting( 96 void MainFrameWillHappenOnImplForTesting(
97 CompletionEvent* completion, 97 CompletionEvent* completion,
98 bool* main_frame_will_happen) override; 98 bool* main_frame_will_happen) override;
99 void StartCommitOnImpl(CompletionEvent* completion) override; 99 void StartCommitOnImpl(CompletionEvent* completion,
100 LayerTreeHost* layer_tree_host,
101 bool hold_commit_for_activation) override;
102 void InitializeImplOnImpl(CompletionEvent* completion,
103 LayerTreeHost* layer_tree_host) override;
104 void LayerTreeHostClosedOnImpl(CompletionEvent* completion) override;
100 105
101 // ChannelImpl Implementation 106 // ChannelImpl Implementation
102 void DidCompleteSwapBuffers() override; 107 void DidCompleteSwapBuffers() override;
103 void SetRendererCapabilitiesMainCopy( 108 void SetRendererCapabilitiesMainCopy(
104 const RendererCapabilities& capabilities) override; 109 const RendererCapabilities& capabilities) override;
105 void BeginMainFrameNotExpectedSoon() override; 110 void BeginMainFrameNotExpectedSoon() override;
106 void DidCommitAndDrawFrame() override; 111 void DidCommitAndDrawFrame() override;
107 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue) override; 112 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue) override;
108 void DidLoseOutputSurface() override; 113 void DidLoseOutputSurface() override;
109 void RequestNewOutputSurface() override; 114 void RequestNewOutputSurface() override;
(...skipping 30 matching lines...) Expand all
140 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 145 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
141 146
142 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_; 147 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_;
143 148
144 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); 149 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel);
145 }; 150 };
146 151
147 } // namespace cc 152 } // namespace cc
148 153
149 #endif // CC_TREES_THREADED_CHANNEL_H_ 154 #endif // CC_TREES_THREADED_CHANNEL_H_
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | cc/trees/threaded_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698