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

Side by Side Diff: mojo/examples/pepper_container_app/graphics_3d_resource.cc

Issue 215803002: Remove CommandBuffer::GetTransferBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/examples/pepper_container_app/graphics_3d_resource.h" 5 #include "mojo/examples/pepper_container_app/graphics_3d_resource.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" 8 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h"
9 #include "mojo/examples/pepper_container_app/plugin_instance.h" 9 #include "mojo/examples/pepper_container_app/plugin_instance.h"
10 #include "mojo/public/c/gles2/gles2.h" 10 #include "mojo/public/c/gles2/gles2.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 PP_Bool Graphics3DResource::SetGetBuffer(int32_t shm_id) { 84 PP_Bool Graphics3DResource::SetGetBuffer(int32_t shm_id) {
85 NOTIMPLEMENTED(); 85 NOTIMPLEMENTED();
86 return PP_FALSE; 86 return PP_FALSE;
87 } 87 }
88 88
89 gpu::CommandBuffer::State Graphics3DResource::GetState() { 89 gpu::CommandBuffer::State Graphics3DResource::GetState() {
90 NOTIMPLEMENTED(); 90 NOTIMPLEMENTED();
91 return GetErrorState(); 91 return GetErrorState();
92 } 92 }
93 93
94 int32_t Graphics3DResource::CreateTransferBuffer(uint32_t size) { 94 scoped_refptr<gpu::Buffer> Graphics3DResource::CreateTransferBuffer(
95 uint32_t size,
96 int32* id) {
95 NOTIMPLEMENTED(); 97 NOTIMPLEMENTED();
96 return PP_FALSE; 98 return NULL;
97 } 99 }
98 100
99 PP_Bool Graphics3DResource::DestroyTransferBuffer(int32_t id) { 101 PP_Bool Graphics3DResource::DestroyTransferBuffer(int32_t id) {
100 NOTIMPLEMENTED(); 102 NOTIMPLEMENTED();
101 return PP_FALSE; 103 return PP_FALSE;
102 } 104 }
103 105
104 PP_Bool Graphics3DResource::GetTransferBuffer(int32_t id,
105 int* shm_handle,
106 uint32_t* shm_size) {
107 NOTIMPLEMENTED();
108 return PP_FALSE;
109 }
110
111 PP_Bool Graphics3DResource::Flush(int32_t put_offset) { 106 PP_Bool Graphics3DResource::Flush(int32_t put_offset) {
112 NOTIMPLEMENTED(); 107 NOTIMPLEMENTED();
113 return PP_FALSE; 108 return PP_FALSE;
114 } 109 }
115 110
116 gpu::CommandBuffer::State Graphics3DResource::WaitForTokenInRange(int32_t start, 111 gpu::CommandBuffer::State Graphics3DResource::WaitForTokenInRange(int32_t start,
117 int32_t end) { 112 int32_t end) {
118 NOTIMPLEMENTED(); 113 NOTIMPLEMENTED();
119 return GetErrorState(); 114 return GetErrorState();
120 } 115 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 156
162 void Graphics3DResource::ContextLost() { 157 void Graphics3DResource::ContextLost() {
163 PluginInstance* plugin_instance = 158 PluginInstance* plugin_instance =
164 MojoPpapiGlobals::Get()->GetInstance(pp_instance()); 159 MojoPpapiGlobals::Get()->GetInstance(pp_instance());
165 if (plugin_instance) 160 if (plugin_instance)
166 plugin_instance->Graphics3DContextLost(); 161 plugin_instance->Graphics3DContextLost();
167 } 162 }
168 163
169 } // namespace examples 164 } // namespace examples
170 } // namespace mojo 165 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/pepper_container_app/graphics_3d_resource.h ('k') | mojo/gles2/command_buffer_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698