Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc

Issue 6899055: PPAPI: Force async callback invocation option. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 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 #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 "ppapi/thunk/common.h"
10 #include "webkit/plugins/ppapi/common.h" 11 #include "webkit/plugins/ppapi/common.h"
11 12
13 using ppapi::thunk::MayForceCallback;
14
12 namespace webkit { 15 namespace webkit {
13 namespace ppapi { 16 namespace ppapi {
14 17
15 namespace { 18 namespace {
16 19
17 int32_t GetConfigs(PP_Config3D_Dev* configs, 20 int32_t GetConfigs(PP_Config3D_Dev* configs,
18 int32_t config_size, 21 int32_t config_size,
19 int32_t* num_config) { 22 int32_t* num_config) {
20 // TODO(alokp): Implement me. 23 // TODO(alokp): Implement me.
21 return PP_ERROR_FAILED; 24 return PP_ERROR_FAILED;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 return 0; 64 return 0;
62 } 65 }
63 66
64 int32_t SetAttribs(PP_Resource context, int32_t* attrib_list) { 67 int32_t SetAttribs(PP_Resource context, int32_t* attrib_list) {
65 // TODO(alokp): Implement me. 68 // TODO(alokp): Implement me.
66 return 0; 69 return 0;
67 } 70 }
68 71
69 int32_t SwapBuffers(PP_Resource context, PP_CompletionCallback callback) { 72 int32_t SwapBuffers(PP_Resource context, PP_CompletionCallback callback) {
70 // TODO(alokp): Implement me. 73 // TODO(alokp): Implement me.
71 return 0; 74 return MayForceCallback(callback, PP_OK);
72 } 75 }
73 76
74 const PPB_Graphics3D_Dev ppb_graphics3d = { 77 const PPB_Graphics3D_Dev ppb_graphics3d = {
75 &GetConfigs, 78 &GetConfigs,
76 &GetConfigAttribs, 79 &GetConfigAttribs,
77 &GetString, 80 &GetString,
78 &Create, 81 &Create,
79 &IsGraphics3D, 82 &IsGraphics3D,
80 &GetAttribs, 83 &GetAttribs,
81 &SetAttribs, 84 &SetAttribs,
(...skipping 19 matching lines...) Expand all
101 104
102 bool PPB_Graphics3D_Impl::Init(PP_Config3D_Dev config, 105 bool PPB_Graphics3D_Impl::Init(PP_Config3D_Dev config,
103 PP_Resource share_context, 106 PP_Resource share_context,
104 const int32_t* attrib_list) { 107 const int32_t* attrib_list) {
105 // TODO(alokp): Implement me. 108 // TODO(alokp): Implement me.
106 return false; 109 return false;
107 } 110 }
108 111
109 } // namespace ppapi 112 } // namespace ppapi
110 } // namespace webkit 113 } // namespace webkit
111
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698