OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
10 #include "webkit/plugins/ppapi/common.h" | 10 #include "webkit/plugins/ppapi/common.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 return 0; | 61 return 0; |
62 } | 62 } |
63 | 63 |
64 int32_t SetAttribs(PP_Resource context, int32_t* attrib_list) { | 64 int32_t SetAttribs(PP_Resource context, int32_t* attrib_list) { |
65 // TODO(alokp): Implement me. | 65 // TODO(alokp): Implement me. |
66 return 0; | 66 return 0; |
67 } | 67 } |
68 | 68 |
69 int32_t SwapBuffers(PP_Resource context, PP_CompletionCallback callback) { | 69 int32_t SwapBuffers(PP_Resource context, PP_CompletionCallback callback) { |
70 // TODO(alokp): Implement me. | 70 // TODO(alokp): Implement me. |
71 return 0; | 71 return MayForceCallback(callback, PP_OK); |
72 } | 72 } |
73 | 73 |
74 const PPB_Graphics3D_Dev ppb_graphics3d = { | 74 const PPB_Graphics3D_Dev ppb_graphics3d = { |
75 &GetConfigs, | 75 &GetConfigs, |
76 &GetConfigAttribs, | 76 &GetConfigAttribs, |
77 &GetString, | 77 &GetString, |
78 &Create, | 78 &Create, |
79 &IsGraphics3D, | 79 &IsGraphics3D, |
80 &GetAttribs, | 80 &GetAttribs, |
81 &SetAttribs, | 81 &SetAttribs, |
(...skipping 19 matching lines...) Expand all Loading... |
101 | 101 |
102 bool PPB_Graphics3D_Impl::Init(PP_Config3D_Dev config, | 102 bool PPB_Graphics3D_Impl::Init(PP_Config3D_Dev config, |
103 PP_Resource share_context, | 103 PP_Resource share_context, |
104 const int32_t* attrib_list) { | 104 const int32_t* attrib_list) { |
105 // TODO(alokp): Implement me. | 105 // TODO(alokp): Implement me. |
106 return false; | 106 return false; |
107 } | 107 } |
108 | 108 |
109 } // namespace ppapi | 109 } // namespace ppapi |
110 } // namespace webkit | 110 } // namespace webkit |
111 | |
OLD | NEW |