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

Side by Side Diff: ppapi/shared_impl/ppb_graphics_3d_shared.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up for review. Created 8 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 #ifndef PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
6 #define PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
(...skipping 18 matching lines...) Expand all
29 public thunk::PPB_Graphics3D_API { 29 public thunk::PPB_Graphics3D_API {
30 public: 30 public:
31 // Resource overrides. 31 // Resource overrides.
32 virtual thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE; 32 virtual thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE;
33 33
34 // PPB_Graphics3D_API implementation. 34 // PPB_Graphics3D_API implementation.
35 virtual int32_t GetAttribs(int32_t attrib_list[]) OVERRIDE; 35 virtual int32_t GetAttribs(int32_t attrib_list[]) OVERRIDE;
36 virtual int32_t SetAttribs(const int32_t attrib_list[]) OVERRIDE; 36 virtual int32_t SetAttribs(const int32_t attrib_list[]) OVERRIDE;
37 virtual int32_t GetError() OVERRIDE; 37 virtual int32_t GetError() OVERRIDE;
38 virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE; 38 virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE;
39 virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE; 39 virtual int32_t SwapBuffers(ApiCallbackType callback) OVERRIDE;
40 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, 40 virtual void* MapTexSubImage2DCHROMIUM(GLenum target,
41 GLint level, 41 GLint level,
42 GLint xoffset, 42 GLint xoffset,
43 GLint yoffset, 43 GLint yoffset,
44 GLsizei width, 44 GLsizei width,
45 GLsizei height, 45 GLsizei height,
46 GLenum format, 46 GLenum format,
47 GLenum type, 47 GLenum type,
48 GLenum access) OVERRIDE; 48 GLenum access) OVERRIDE;
49 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; 49 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE;
(...skipping 26 matching lines...) Expand all
76 // Callback that needs to be executed when swap-buffers is completed. 76 // Callback that needs to be executed when swap-buffers is completed.
77 scoped_refptr<TrackedCallback> swap_callback_; 77 scoped_refptr<TrackedCallback> swap_callback_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); 79 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared);
80 }; 80 };
81 81
82 } // namespace ppapi 82 } // namespace ppapi
83 83
84 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 84 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
85 85
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698