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

Side by Side Diff: ppapi/thunk/ppb_graphics_3d_api.h

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/shared_impl/ppb_graphics_3d_shared.cc ('k') | ppapi/thunk/ppb_graphics_3d_thunk.cc » ('j') | 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 #ifndef PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_ 5 #ifndef PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_
6 #define PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_ 6 #define PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 14 matching lines...) Expand all
25 25
26 class PPAPI_THUNK_EXPORT PPB_Graphics3D_API { 26 class PPAPI_THUNK_EXPORT PPB_Graphics3D_API {
27 public: 27 public:
28 virtual ~PPB_Graphics3D_API() {} 28 virtual ~PPB_Graphics3D_API() {}
29 29
30 // Graphics3D API. 30 // Graphics3D API.
31 virtual int32_t GetAttribs(int32_t attrib_list[]) = 0; 31 virtual int32_t GetAttribs(int32_t attrib_list[]) = 0;
32 virtual int32_t SetAttribs(const int32_t attrib_list[]) = 0; 32 virtual int32_t SetAttribs(const int32_t attrib_list[]) = 0;
33 virtual int32_t GetError() = 0; 33 virtual int32_t GetError() = 0;
34 virtual int32_t ResizeBuffers(int32_t width, int32_t height) = 0; 34 virtual int32_t ResizeBuffers(int32_t width, int32_t height) = 0;
35 virtual int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback, 35 virtual int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback) = 0;
36 const gpu::SyncToken& sync_token) = 0; 36 virtual int32_t SwapBuffersWithSyncToken(
37 scoped_refptr<TrackedCallback> callback,
38 const gpu::SyncToken& sync_token) = 0;
37 virtual int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) = 0; 39 virtual int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) = 0;
38 40
39 // Graphics3DTrusted API. 41 // Graphics3DTrusted API.
40 virtual PP_Bool SetGetBuffer(int32_t shm_id) = 0; 42 virtual PP_Bool SetGetBuffer(int32_t shm_id) = 0;
41 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, 43 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size,
42 int32_t* id) = 0; 44 int32_t* id) = 0;
43 virtual PP_Bool DestroyTransferBuffer(int32_t id) = 0; 45 virtual PP_Bool DestroyTransferBuffer(int32_t id) = 0;
44 virtual PP_Bool Flush(int32_t put_offset) = 0; 46 virtual PP_Bool Flush(int32_t put_offset) = 0;
45 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, 47 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start,
46 int32_t end) = 0; 48 int32_t end) = 0;
(...skipping 12 matching lines...) Expand all
59 GLenum access) = 0; 61 GLenum access) = 0;
60 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0; 62 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0;
61 63
62 virtual void EnsureWorkVisible() = 0; 64 virtual void EnsureWorkVisible() = 0;
63 }; 65 };
64 66
65 } // namespace thunk 67 } // namespace thunk
66 } // namespace ppapi 68 } // namespace ppapi
67 69
68 #endif // PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_ 70 #endif // PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.cc ('k') | ppapi/thunk/ppb_graphics_3d_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698