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

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

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Popen instead, force carriage returns in thunks Created 6 years, 8 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) 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 #include "ppapi/thunk/thunk.h" 5 #include "ppapi/thunk/thunk.h"
6 #include "ppapi/thunk/enter.h" 6 #include "ppapi/thunk/enter.h"
7 #include "ppapi/thunk/ppb_graphics_3d_api.h" 7 #include "ppapi/thunk/ppb_graphics_3d_api.h"
8 #include "ppapi/thunk/resource_creation_api.h" 8 #include "ppapi/thunk/resource_creation_api.h"
9 9
10 namespace ppapi { 10 namespace ppapi {
(...skipping 21 matching lines...) Expand all
32 return NULL; 32 return NULL;
33 } 33 }
34 34
35 void UnmapTexSubImage2DCHROMIUM(PP_Resource context, const void* mem) { 35 void UnmapTexSubImage2DCHROMIUM(PP_Resource context, const void* mem) {
36 EnterGraphics3D enter(context, true); 36 EnterGraphics3D enter(context, true);
37 if (enter.succeeded()) 37 if (enter.succeeded())
38 enter.object()->UnmapTexSubImage2DCHROMIUM(mem); 38 enter.object()->UnmapTexSubImage2DCHROMIUM(mem);
39 } 39 }
40 40
41 const PPB_GLESChromiumTextureMapping_Dev 41 const PPB_GLESChromiumTextureMapping_Dev
42 g_ppb_gles_chromium_texture_mapping_thunk = { 42 g_ppb_gles_chromium_texture_mapping_thunk = {&MapTexSubImage2DCHROMIUM,
43 &MapTexSubImage2DCHROMIUM, 43 &UnmapTexSubImage2DCHROMIUM};
44 &UnmapTexSubImage2DCHROMIUM
45 };
46 44
47 } // namespace 45 } // namespace
48 46
49 const PPB_GLESChromiumTextureMapping_Dev_0_1* 47 const PPB_GLESChromiumTextureMapping_Dev_0_1*
50 GetPPB_GLESChromiumTextureMapping_Dev_0_1_Thunk() { 48 GetPPB_GLESChromiumTextureMapping_Dev_0_1_Thunk() {
51 return &g_ppb_gles_chromium_texture_mapping_thunk; 49 return &g_ppb_gles_chromium_texture_mapping_thunk;
52 } 50 }
53 51
54 } // namespace thunk 52 } // namespace thunk
55 } // namespace ppapi 53 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698