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

Side by Side Diff: ppapi/thunk/ppb_graphics_3d_thunk.cc

Issue 1801493003: Fix ppb_graphics_3d such that the thunk can be generated again (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_api.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // From ppb_graphics_3d.idl modified Fri Nov 1 16:12:12 2013. 5 // From ppb_graphics_3d.idl modified Wed Jan 27 17:10:16 2016.
6 6
7 #include <stdint.h>
8
9 #include "gpu/command_buffer/common/sync_token.h"
10 #include "ppapi/c/pp_completion_callback.h" 7 #include "ppapi/c/pp_completion_callback.h"
11 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
12 #include "ppapi/c/ppb_graphics_3d.h" 9 #include "ppapi/c/ppb_graphics_3d.h"
13 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
14 #include "ppapi/thunk/enter.h" 11 #include "ppapi/thunk/enter.h"
15 #include "ppapi/thunk/ppapi_thunk_export.h" 12 #include "ppapi/thunk/ppapi_thunk_export.h"
16 #include "ppapi/thunk/ppb_graphics_3d_api.h" 13 #include "ppapi/thunk/ppb_graphics_3d_api.h"
17 14
18 namespace ppapi { 15 namespace ppapi {
19 namespace thunk { 16 namespace thunk {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return enter.retval(); 75 return enter.retval();
79 return enter.object()->ResizeBuffers(width, height); 76 return enter.object()->ResizeBuffers(width, height);
80 } 77 }
81 78
82 int32_t SwapBuffers(PP_Resource context, 79 int32_t SwapBuffers(PP_Resource context,
83 struct PP_CompletionCallback callback) { 80 struct PP_CompletionCallback callback) {
84 VLOG(4) << "PPB_Graphics3D::SwapBuffers()"; 81 VLOG(4) << "PPB_Graphics3D::SwapBuffers()";
85 EnterResource<PPB_Graphics3D_API> enter(context, callback, true); 82 EnterResource<PPB_Graphics3D_API> enter(context, callback, true);
86 if (enter.failed()) 83 if (enter.failed())
87 return enter.retval(); 84 return enter.retval();
88 return enter.SetResult(enter.object()->SwapBuffers(enter.callback(), 85 return enter.SetResult(enter.object()->SwapBuffers(enter.callback()));
89 gpu::SyncToken()));
90 } 86 }
91 87
92 const PPB_Graphics3D_1_0 g_ppb_graphics3d_thunk_1_0 = {&GetAttribMaxValue, 88 const PPB_Graphics3D_1_0 g_ppb_graphics3d_thunk_1_0 = {
93 &Create, 89 &GetAttribMaxValue, &Create, &IsGraphics3D, &GetAttribs,
94 &IsGraphics3D, 90 &SetAttribs, &GetError, &ResizeBuffers, &SwapBuffers};
95 &GetAttribs,
96 &SetAttribs,
97 &GetError,
98 &ResizeBuffers,
99 &SwapBuffers};
100 91
101 } // namespace 92 } // namespace
102 93
103 PPAPI_THUNK_EXPORT const PPB_Graphics3D_1_0* GetPPB_Graphics3D_1_0_Thunk() { 94 PPAPI_THUNK_EXPORT const PPB_Graphics3D_1_0* GetPPB_Graphics3D_1_0_Thunk() {
104 return &g_ppb_graphics3d_thunk_1_0; 95 return &g_ppb_graphics3d_thunk_1_0;
105 } 96 }
106 97
107 } // namespace thunk 98 } // namespace thunk
108 } // namespace ppapi 99 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698