OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 PPAPI_CPP_DEV_BUFFER_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_BUFFER_DEV_H_ |
6 #define PPAPI_CPP_DEV_BUFFER_DEV_H_ | 6 #define PPAPI_CPP_DEV_BUFFER_DEV_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/cpp/resource.h" | 10 #include "ppapi/cpp/resource.h" |
9 | 11 |
10 namespace pp { | 12 namespace pp { |
11 | 13 |
12 class InstanceHandle; | 14 class InstanceHandle; |
13 | 15 |
14 class Buffer_Dev : public Resource { | 16 class Buffer_Dev : public Resource { |
15 public: | 17 public: |
16 // Creates an is_null() Buffer object. | 18 // Creates an is_null() Buffer object. |
17 Buffer_Dev(); | 19 Buffer_Dev(); |
(...skipping 19 matching lines...) Expand all Loading... |
37 private: | 39 private: |
38 void Init(); | 40 void Init(); |
39 | 41 |
40 void* data_; | 42 void* data_; |
41 uint32_t size_; | 43 uint32_t size_; |
42 }; | 44 }; |
43 | 45 |
44 } // namespace pp | 46 } // namespace pp |
45 | 47 |
46 #endif // PPAPI_CPP_DEV_BUFFER_DEV_H_ | 48 #endif // PPAPI_CPP_DEV_BUFFER_DEV_H_ |
OLD | NEW |