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

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

Issue 256573003: cc: Remove the capability to give up and leave compositing mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_unittest_delegated.cc ('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/time/time.h" 10 #include "base/time/time.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void DidManageTiles() OVERRIDE {} 81 virtual void DidManageTiles() OVERRIDE {}
82 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {} 82 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {}
83 83
84 // Called by the legacy path where RenderWidget does the scheduling. 84 // Called by the legacy path where RenderWidget does the scheduling.
85 void CompositeImmediately(base::TimeTicks frame_begin_time); 85 void CompositeImmediately(base::TimeTicks frame_begin_time);
86 86
87 private: 87 private:
88 SingleThreadProxy(LayerTreeHost* layer_tree_host, 88 SingleThreadProxy(LayerTreeHost* layer_tree_host,
89 LayerTreeHostSingleThreadClient* client); 89 LayerTreeHostSingleThreadClient* client);
90 90
91 void OnOutputSurfaceInitializeAttempted(bool success);
92 bool CommitAndComposite(base::TimeTicks frame_begin_time, 91 bool CommitAndComposite(base::TimeTicks frame_begin_time,
93 const gfx::Rect& device_viewport_damage_rect, 92 const gfx::Rect& device_viewport_damage_rect,
94 bool for_readback, 93 bool for_readback,
95 LayerTreeHostImpl::FrameData* frame); 94 LayerTreeHostImpl::FrameData* frame);
96 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); 95 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
97 bool DoComposite(base::TimeTicks frame_begin_time, 96 bool DoComposite(base::TimeTicks frame_begin_time,
98 const gfx::Rect& device_viewport_damage_rect, 97 const gfx::Rect& device_viewport_damage_rect,
99 bool for_readback, 98 bool for_readback,
100 LayerTreeHostImpl::FrameData* frame); 99 LayerTreeHostImpl::FrameData* frame);
101 void DidSwapFrame(); 100 void DidSwapFrame();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 private: 175 private:
177 DebugScopedSetImplThread impl_thread_; 176 DebugScopedSetImplThread impl_thread_;
178 DebugScopedSetMainThreadBlocked main_thread_blocked_; 177 DebugScopedSetMainThreadBlocked main_thread_blocked_;
179 178
180 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 179 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
181 }; 180 };
182 181
183 } // namespace cc 182 } // namespace cc
184 183
185 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 184 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_delegated.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698