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

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

Issue 53153006: Simplify rate limiting since it's main thread shared context only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | content/renderer/gpu/render_widget_compositor.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_LAYER_TREE_HOST_CLIENT_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_CLIENT_H_
6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_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 10
(...skipping 26 matching lines...) Expand all
37 virtual void DidCompleteSwapBuffers() = 0; 37 virtual void DidCompleteSwapBuffers() = 0;
38 38
39 // Used only in the single-threaded path. 39 // Used only in the single-threaded path.
40 virtual void ScheduleComposite() = 0; 40 virtual void ScheduleComposite() = 0;
41 41
42 // If the client provides an OutputSurface bound to a 3d context for direct 42 // If the client provides an OutputSurface bound to a 3d context for direct
43 // rendering, this must return a provider that provides contexts usable from 43 // rendering, this must return a provider that provides contexts usable from
44 // the same thread as the OutputSurface's context. 44 // the same thread as the OutputSurface's context.
45 virtual scoped_refptr<cc::ContextProvider> OffscreenContextProvider() = 0; 45 virtual scoped_refptr<cc::ContextProvider> OffscreenContextProvider() = 0;
46 46
47 // Requests that the client insert a rate limiting token in the shared main
48 // thread context's command stream that will block if the context gets too far
49 // ahead of the compositor's command stream. Only needed if the tree contains
50 // a TextureLayer that calls SetRateLimitContext(true).
51 virtual void RateLimitSharedMainThreadContext() {}
52
47 // This hook is for testing. 53 // This hook is for testing.
48 virtual void DidFailToInitializeOutputSurface() {} 54 virtual void DidFailToInitializeOutputSurface() {}
49 55
50 protected: 56 protected:
51 virtual ~LayerTreeHostClient() {} 57 virtual ~LayerTreeHostClient() {}
52 }; 58 };
53 59
54 } // namespace cc 60 } // namespace cc
55 61
56 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 62 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698