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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build Created 6 years, 7 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 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" 5 #include "ppapi/proxy/ppapi_command_buffer_proxy.h"
6 6
7 #include "ppapi/proxy/ppapi_messages.h" 7 #include "ppapi/proxy/ppapi_messages.h"
8 #include "ppapi/proxy/proxy_channel.h" 8 #include "ppapi/proxy/proxy_channel.h"
9 #include "ppapi/shared_impl/api_id.h" 9 #include "ppapi/shared_impl/api_id.h"
10 #include "ppapi/shared_impl/host_resource.h" 10 #include "ppapi/shared_impl/host_resource.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { 188 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() {
189 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in 189 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in
190 // crbug.com/325391. 190 // crbug.com/325391.
191 return gpu::Capabilities(); 191 return gpu::Capabilities();
192 } 192 }
193 193
194 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( 194 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer(
195 size_t width, 195 size_t width,
196 size_t height, 196 size_t height,
197 unsigned internalformat, 197 unsigned internalformat,
198 unsigned usage,
198 int32* id) { 199 int32* id) {
199 NOTREACHED(); 200 NOTREACHED();
200 return NULL; 201 return NULL;
201 } 202 }
202 203
203 void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) { 204 void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) {
204 NOTREACHED(); 205 NOTREACHED();
205 } 206 }
206 207
207 bool PpapiCommandBufferProxy::Send(IPC::Message* msg) { 208 bool PpapiCommandBufferProxy::Send(IPC::Message* msg) {
(...skipping 16 matching lines...) Expand all
224 last_state_ = state; 225 last_state_ = state;
225 } 226 }
226 } else { 227 } else {
227 last_state_.error = gpu::error::kLostContext; 228 last_state_.error = gpu::error::kLostContext;
228 ++last_state_.generation; 229 ++last_state_.generation;
229 } 230 }
230 } 231 }
231 232
232 } // namespace proxy 233 } // namespace proxy
233 } // namespace ppapi 234 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698