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

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

Issue 9340003: Added idl file for Pepper 3D. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.h ('k') | ppapi/thunk/ppb_graphics_3d_api.h » ('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 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" 5 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "gpu/command_buffer/client/gles2_cmd_helper.h" 8 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
9 #include "gpu/command_buffer/client/gles2_implementation.h" 9 #include "gpu/command_buffer/client/gles2_implementation.h"
10 #include "gpu/command_buffer/client/transfer_buffer.h" 10 #include "gpu/command_buffer/client/transfer_buffer.h"
(...skipping 13 matching lines...) Expand all
24 // Make sure that GLES2 implementation has already been destroyed. 24 // Make sure that GLES2 implementation has already been destroyed.
25 DCHECK(!gles2_helper_.get()); 25 DCHECK(!gles2_helper_.get());
26 DCHECK(!transfer_buffer_.get()); 26 DCHECK(!transfer_buffer_.get());
27 DCHECK(!gles2_impl_.get()); 27 DCHECK(!gles2_impl_.get());
28 } 28 }
29 29
30 thunk::PPB_Graphics3D_API* PPB_Graphics3D_Shared::AsPPB_Graphics3D_API() { 30 thunk::PPB_Graphics3D_API* PPB_Graphics3D_Shared::AsPPB_Graphics3D_API() {
31 return this; 31 return this;
32 } 32 }
33 33
34 int32_t PPB_Graphics3D_Shared::GetAttribs(int32_t* attrib_list) { 34 int32_t PPB_Graphics3D_Shared::GetAttribs(int32_t attrib_list[]) {
35 // TODO(alokp): Implement me. 35 // TODO(alokp): Implement me.
36 return PP_ERROR_FAILED; 36 return PP_ERROR_FAILED;
37 } 37 }
38 38
39 int32_t PPB_Graphics3D_Shared::SetAttribs(int32_t* attrib_list) { 39 int32_t PPB_Graphics3D_Shared::SetAttribs(const int32_t attrib_list[]) {
40 // TODO(alokp): Implement me. 40 // TODO(alokp): Implement me.
41 return PP_ERROR_FAILED; 41 return PP_ERROR_FAILED;
42 } 42 }
43 43
44 int32_t PPB_Graphics3D_Shared::GetError() { 44 int32_t PPB_Graphics3D_Shared::GetError() {
45 // TODO(alokp): Implement me. 45 // TODO(alokp): Implement me.
46 return PP_ERROR_FAILED; 46 return PP_ERROR_FAILED;
47 } 47 }
48 48
49 int32_t PPB_Graphics3D_Shared::ResizeBuffers(int32_t width, int32_t height) { 49 int32_t PPB_Graphics3D_Shared::ResizeBuffers(int32_t width, int32_t height) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 void PPB_Graphics3D_Shared::DestroyGLES2Impl() { 133 void PPB_Graphics3D_Shared::DestroyGLES2Impl() {
134 gles2_impl_.reset(); 134 gles2_impl_.reset();
135 transfer_buffer_.reset(); 135 transfer_buffer_.reset();
136 gles2_helper_.reset(); 136 gles2_helper_.reset();
137 } 137 }
138 138
139 } // namespace ppapi 139 } // namespace ppapi
140 140
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.h ('k') | ppapi/thunk/ppb_graphics_3d_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698