OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ | 6 #define WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "third_party/npapi/bindings/npapi_extensions.h" | 9 #include "third_party/npapi/bindings/npapi_extensions.h" |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 virtual NPError Device3DFlushContext(NPP id, | 40 virtual NPError Device3DFlushContext(NPP id, |
41 NPDeviceContext3D* context, | 41 NPDeviceContext3D* context, |
42 NPDeviceFlushContextCallbackPtr callback, | 42 NPDeviceFlushContextCallbackPtr callback, |
43 void* user_data) { | 43 void* user_data) { |
44 return NPERR_GENERIC_ERROR; | 44 return NPERR_GENERIC_ERROR; |
45 } | 45 } |
46 virtual NPError Device3DDestroyContext(NPDeviceContext3D* context) { | 46 virtual NPError Device3DDestroyContext(NPDeviceContext3D* context) { |
47 return NPERR_GENERIC_ERROR; | 47 return NPERR_GENERIC_ERROR; |
48 } | 48 } |
| 49 virtual NPError Device3DCreateBuffer(NPDeviceContext3D* context, |
| 50 size_t size, |
| 51 int32* id) { |
| 52 return NPERR_GENERIC_ERROR; |
| 53 } |
| 54 virtual NPError Device3DDestroyBuffer(NPDeviceContext3D* context, |
| 55 int32 id) { |
| 56 return NPERR_GENERIC_ERROR; |
| 57 } |
| 58 virtual NPError Device3DMapBuffer(NPDeviceContext3D* context, |
| 59 int32 id, |
| 60 NPDeviceBuffer* buffer) { |
| 61 return NPERR_GENERIC_ERROR; |
| 62 } |
49 | 63 |
50 protected: | 64 protected: |
51 WebPlugin3DDeviceDelegate() {} | 65 WebPlugin3DDeviceDelegate() {} |
52 virtual ~WebPlugin3DDeviceDelegate() {} | 66 virtual ~WebPlugin3DDeviceDelegate() {} |
53 }; | 67 }; |
54 | 68 |
55 } // namespace webkit_glue | 69 } // namespace webkit_glue |
56 | 70 |
57 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ | 71 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ |
OLD | NEW |