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

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

Issue 1336733002: Re-land: cc: Implement shared worker contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix LayerTreeHostClientTakeAwayOutputSurface test. Content provider is always destroyed on the clie… Created 5 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 | « cc/trees/proxy.h ('k') | cc/trees/single_thread_proxy.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 20 matching lines...) Expand all
31 LayerTreeHost* layer_tree_host, 31 LayerTreeHost* layer_tree_host,
32 LayerTreeHostSingleThreadClient* client, 32 LayerTreeHostSingleThreadClient* client,
33 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 33 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
34 scoped_ptr<BeginFrameSource> external_begin_frame_source); 34 scoped_ptr<BeginFrameSource> external_begin_frame_source);
35 ~SingleThreadProxy() override; 35 ~SingleThreadProxy() override;
36 36
37 // Proxy implementation 37 // Proxy implementation
38 void FinishAllRendering() override; 38 void FinishAllRendering() override;
39 bool IsStarted() const override; 39 bool IsStarted() const override;
40 bool CommitToActiveTree() const override; 40 bool CommitToActiveTree() const override;
41 void SetOutputSurface(scoped_ptr<OutputSurface>) override; 41 void SetOutputSurface(OutputSurface* output_surface) override;
42 scoped_ptr<OutputSurface> ReleaseOutputSurface() override; 42 void ReleaseOutputSurface() override;
43 void SetLayerTreeHostClientReady() override; 43 void SetLayerTreeHostClientReady() override;
44 void SetVisible(bool visible) override; 44 void SetVisible(bool visible) override;
45 void SetThrottleFrameProduction(bool throttle) override; 45 void SetThrottleFrameProduction(bool throttle) override;
46 const RendererCapabilities& GetRendererCapabilities() const override; 46 const RendererCapabilities& GetRendererCapabilities() const override;
47 void SetNeedsAnimate() override; 47 void SetNeedsAnimate() override;
48 void SetNeedsUpdateLayers() override; 48 void SetNeedsUpdateLayers() override;
49 void SetNeedsCommit() override; 49 void SetNeedsCommit() override;
50 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; 50 void SetNeedsRedraw(const gfx::Rect& damage_rect) override;
51 void SetNextCommitWaitsForActivation() override; 51 void SetNextCommitWaitsForActivation() override;
52 void NotifyInputThrottledUntilCommit() override {} 52 void NotifyInputThrottledUntilCommit() override {}
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 private: 230 private:
231 DebugScopedSetImplThread impl_thread_; 231 DebugScopedSetImplThread impl_thread_;
232 DebugScopedSetMainThreadBlocked main_thread_blocked_; 232 DebugScopedSetMainThreadBlocked main_thread_blocked_;
233 233
234 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 234 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
235 }; 235 };
236 236
237 } // namespace cc 237 } // namespace cc
238 238
239 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 239 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698