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

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

Issue 368883003: cc: Disallow scroll offset animations when impl-scrolling isn't supported (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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_animation.cc ('k') | cc/trees/single_thread_proxy.h » ('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_PROXY_H_ 5 #ifndef CC_TREES_PROXY_H_
6 #define CC_TREES_PROXY_H_ 6 #define CC_TREES_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void Start() = 0; 82 virtual void Start() = 0;
83 virtual void Stop() = 0; // Must be called before deleting the proxy. 83 virtual void Stop() = 0; // Must be called before deleting the proxy.
84 84
85 // Forces 3D commands on all contexts to wait for all previous SwapBuffers 85 // Forces 3D commands on all contexts to wait for all previous SwapBuffers
86 // to finish before executing in the GPU process. 86 // to finish before executing in the GPU process.
87 virtual void ForceSerializeOnSwapBuffers() = 0; 87 virtual void ForceSerializeOnSwapBuffers() = 0;
88 88
89 // Maximum number of sub-region texture updates supported for each commit. 89 // Maximum number of sub-region texture updates supported for each commit.
90 virtual size_t MaxPartialTextureUpdates() const = 0; 90 virtual size_t MaxPartialTextureUpdates() const = 0;
91 91
92 virtual bool SupportsImplScrolling() const = 0;
93
92 virtual scoped_ptr<base::Value> AsValue() const = 0; 94 virtual scoped_ptr<base::Value> AsValue() const = 0;
93 95
94 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; 96 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0;
95 97
96 // Testing hooks 98 // Testing hooks
97 virtual bool CommitPendingForTesting() = 0; 99 virtual bool CommitPendingForTesting() = 0;
98 virtual scoped_ptr<base::Value> SchedulerAsValueForTesting(); 100 virtual scoped_ptr<base::Value> SchedulerAsValueForTesting();
99 101
100 protected: 102 protected:
101 explicit Proxy( 103 explicit Proxy(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 139 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
138 ~DebugScopedSetMainThreadBlocked() {} 140 ~DebugScopedSetMainThreadBlocked() {}
139 private: 141 private:
140 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 142 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
141 }; 143 };
142 #endif 144 #endif
143 145
144 } // namespace cc 146 } // namespace cc
145 147
146 #endif // CC_TREES_PROXY_H_ 148 #endif // CC_TREES_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698