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

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: Rebase 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
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | ui/gfx/gpu_memory_buffer.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/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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { 174 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() {
175 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in 175 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in
176 // crbug.com/325391. 176 // crbug.com/325391.
177 return gpu::Capabilities(); 177 return gpu::Capabilities();
178 } 178 }
179 179
180 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( 180 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer(
181 size_t width, 181 size_t width,
182 size_t height, 182 size_t height,
183 unsigned internalformat, 183 unsigned internalformat,
184 unsigned usage,
184 int32* id) { 185 int32* id) {
185 NOTREACHED(); 186 NOTREACHED();
186 return NULL; 187 return NULL;
187 } 188 }
188 189
189 void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) { 190 void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) {
190 NOTREACHED(); 191 NOTREACHED();
191 } 192 }
192 193
193 bool PpapiCommandBufferProxy::Send(IPC::Message* msg) { 194 bool PpapiCommandBufferProxy::Send(IPC::Message* msg) {
(...skipping 16 matching lines...) Expand all
210 last_state_ = state; 211 last_state_ = state;
211 } 212 }
212 } else { 213 } else {
213 last_state_.error = gpu::error::kLostContext; 214 last_state_.error = gpu::error::kLostContext;
214 ++last_state_.generation; 215 ++last_state_.generation;
215 } 216 }
216 } 217 }
217 218
218 } // namespace proxy 219 } // namespace proxy
219 } // namespace ppapi 220 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | ui/gfx/gpu_memory_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698