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

Unified Diff: ppapi/thunk/ppb_context_3d_api.h

Issue 7206016: Convert most remaining resources to use the API/thunk system. The significant (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 side-by-side diff with in-line comments
Download patch
Index: ppapi/thunk/ppb_context_3d_api.h
===================================================================
--- ppapi/thunk/ppb_context_3d_api.h (revision 0)
+++ ppapi/thunk/ppb_context_3d_api.h (revision 0)
@@ -0,0 +1,53 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_THUNK_PPB_CONTEXT_3D_API_H_
+#define PPAPI_THUNK_PPB_CONTEXT_3D_API_H_
+
+#include "ppapi/c/dev/ppb_context_3d_dev.h"
+#include "ppapi/c/dev/ppb_context_3d_trusted_dev.h"
+#include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
+
+namespace ppapi {
+namespace thunk {
+
+class PPB_Context3D_API {
+ public:
+ // Context3D.
+ virtual int32_t GetAttrib(int32_t attribute, int32_t* value) = 0;
+ virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) = 0;
+ virtual int32_t GetBoundSurfaces(PP_Resource* draw, PP_Resource* read) = 0;
+
+ // Context3DTrusted.
+ virtual PP_Bool InitializeTrusted(int32_t size) = 0;
+ virtual PP_Bool GetRingBuffer(int* shm_handle,
+ uint32_t* shm_size) = 0;
+ virtual PP_Context3DTrustedState GetState() = 0;
+ virtual PP_Bool Flush(int32_t put_offset) = 0;
+ virtual PP_Context3DTrustedState FlushSync(int32_t put_offset) = 0;
+ virtual int32_t CreateTransferBuffer(uint32_t size) = 0;
+ virtual PP_Bool DestroyTransferBuffer(int32_t id) = 0;
+ virtual PP_Bool GetTransferBuffer(int32_t id,
+ int* shm_handle,
+ uint32_t* shm_size) = 0;
+ virtual PP_Context3DTrustedState FlushSyncFast(int32_t put_offset,
+ int32_t last_known_get) = 0;
+
+ // GLESChromiumTextureMapping.
piman 2011/06/20 20:26:14 Why are these piggy-backing on the PPB_Context3D_A
brettw 2011/06/20 21:37:11 Everything "should" be like this and go through th
+ virtual void* MapTexSubImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ GLenum access) = 0;
+ virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0;
+};
+
+} // namespace thunk
+} // namespace ppapi
+
+#endif // PPAPI_THUNK_PPB_CONTEXT_3D_API_H_
Property changes on: ppapi/thunk/ppb_context_3d_api.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698