OLD | NEW |
---|---|
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 Loading... | |
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 // Blah blah blah bullshit | |
jamesr
2013/11/02 00:31:32
Hmm, guess I have to improve this comment a bit be
piman
2013/11/02 01:07:37
Lol.
| |
48 virtual void RateLimitSharedMainThreadContext() {} | |
49 | |
47 // This hook is for testing. | 50 // This hook is for testing. |
48 virtual void DidFailToInitializeOutputSurface() {} | 51 virtual void DidFailToInitializeOutputSurface() {} |
49 | 52 |
50 protected: | 53 protected: |
51 virtual ~LayerTreeHostClient() {} | 54 virtual ~LayerTreeHostClient() {} |
52 }; | 55 }; |
53 | 56 |
54 } // namespace cc | 57 } // namespace cc |
55 | 58 |
56 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ | 59 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ |
OLD | NEW |