OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PPAPI_THUNK_PPB_COMPOSITOR_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_COMPOSITOR_API_H_ |
6 #define PPAPI_THUNK_PPB_COMPOSITOR_API_H_ | 6 #define PPAPI_THUNK_PPB_COMPOSITOR_API_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "ppapi/c/ppb_compositor.h" | 9 #include "ppapi/c/ppb_compositor.h" |
10 #include "ppapi/shared_impl/tracked_callback.h" | 10 #include "ppapi/shared_impl/tracked_callback.h" |
11 | 11 |
12 namespace ppapi { | 12 namespace ppapi { |
13 namespace thunk { | 13 namespace thunk { |
14 | 14 |
15 class PPAPI_THUNK_EXPORT PPB_Compositor_API { | 15 class PPAPI_THUNK_EXPORT PPB_Compositor_API { |
16 public: | 16 public: |
17 virtual ~PPB_Compositor_API() {} | 17 virtual ~PPB_Compositor_API() {} |
18 virtual PP_Resource AddLayer() = 0; | 18 virtual PP_Resource AddLayer() = 0; |
19 virtual int32_t CommitLayers( | 19 virtual int32_t CommitLayers( |
20 const scoped_refptr<ppapi::TrackedCallback>& callback) = 0; | 20 const scoped_refptr<ppapi::TrackedCallback>& callback) = 0; |
21 virtual int32_t ResetLayers() = 0; | 21 virtual int32_t ResetLayers() = 0; |
| 22 |
| 23 // Private API. |
| 24 virtual void BindToInstance(bool bound) = 0; |
22 }; | 25 }; |
23 | 26 |
24 } // namespace thunk | 27 } // namespace thunk |
25 } // namespace ppapi | 28 } // namespace ppapi |
26 | 29 |
27 #endif // PPAPI_THUNK_PPB_COMPOSITOR_API_H_ | 30 #endif // PPAPI_THUNK_PPB_COMPOSITOR_API_H_ |
OLD | NEW |