summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_graphics_3d_proxy.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-20 23:09:28 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-20 23:09:28 +0000
commitac4b54de7f49f4f0910b952888eb44fc55737195 (patch)
tree00fc8b7d9bb51ca71ee34d3befb20be85acc2a3c /ppapi/proxy/ppb_graphics_3d_proxy.cc
parentd365a681dce7dca73ecbd682529a98b5505e9cdb (diff)
downloadchromium_src-ac4b54de7f49f4f0910b952888eb44fc55737195.zip
chromium_src-ac4b54de7f49f4f0910b952888eb44fc55737195.tar.gz
chromium_src-ac4b54de7f49f4f0910b952888eb44fc55737195.tar.bz2
Rename InterfaceID to ApiID and move the file.
This was originally in the proxy and had a 1:1 correspondence with an interface. Then we reused this for other stuff and then merged some interfaces into larger APIs (ppapi/thunk/*_api.h) so the name was no longer accurate. It was wrong to be in the proxy directory since directories at a "lower level" than the proxy (ppapi/shared_impl and webkit/plugins/ppapi) depended on it. This renames to ApiID (I avoided APIID since it looks like a define) which is the proper description of the class, and moved it to shared_impl. This fixes the deps since there are no longer any bad dependencies on the proxy directory. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/8333004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106619 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_graphics_3d_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_graphics_3d_proxy.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.cc b/ppapi/proxy/ppb_graphics_3d_proxy.cc
index e184ef0..0bb7440 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.cc
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.cc
@@ -92,7 +92,7 @@ bool CommandBuffer::Initialize(int32 size) {
// for NaCl.
base::SharedMemoryHandle handle;
if (Send(new PpapiHostMsg_PPBGraphics3D_InitCommandBuffer(
- INTERFACE_ID_PPB_GRAPHICS_3D, resource_, size, &handle)) &&
+ API_ID_PPB_GRAPHICS_3D, resource_, size, &handle)) &&
base::SharedMemory::IsHandleValid(handle)) {
ring_buffer_.reset(new base::SharedMemory(handle, false));
if (ring_buffer_->Map(size)) {
@@ -126,7 +126,7 @@ gpu::CommandBuffer::State CommandBuffer::GetState() {
if (last_state_.error == gpu::error::kNoError) {
gpu::CommandBuffer::State state;
if (Send(new PpapiHostMsg_PPBGraphics3D_GetState(
- INTERFACE_ID_PPB_GRAPHICS_3D, resource_, &state)))
+ API_ID_PPB_GRAPHICS_3D, resource_, &state)))
UpdateState(state);
}
@@ -142,7 +142,7 @@ void CommandBuffer::Flush(int32 put_offset) {
return;
IPC::Message* message = new PpapiHostMsg_PPBGraphics3D_AsyncFlush(
- INTERFACE_ID_PPB_GRAPHICS_3D, resource_, put_offset);
+ API_ID_PPB_GRAPHICS_3D, resource_, put_offset);
// Do not let a synchronous flush hold up this message. If this handler is
// deferred until after the synchronous flush completes, it will overwrite the
@@ -158,7 +158,7 @@ gpu::CommandBuffer::State CommandBuffer::FlushSync(int32 put_offset,
if (last_state_.error == gpu::error::kNoError) {
gpu::CommandBuffer::State state;
if (Send(new PpapiHostMsg_PPBGraphics3D_Flush(
- INTERFACE_ID_PPB_GRAPHICS_3D, resource_, put_offset,
+ API_ID_PPB_GRAPHICS_3D, resource_, put_offset,
last_known_get, &state)))
UpdateState(state);
}
@@ -178,7 +178,7 @@ int32 CommandBuffer::CreateTransferBuffer(size_t size, int32 id_request) {
if (last_state_.error == gpu::error::kNoError) {
int32 id;
if (Send(new PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer(
- INTERFACE_ID_PPB_GRAPHICS_3D, resource_, size, &id))) {
+ API_ID_PPB_GRAPHICS_3D, resource_, size, &id))) {
return id;
}
}
@@ -209,7 +209,7 @@ void CommandBuffer::DestroyTransferBuffer(int32 id) {
transfer_buffers_.erase(it);
Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer(
- INTERFACE_ID_PPB_GRAPHICS_3D, resource_, id));
+ API_ID_PPB_GRAPHICS_3D, resource_, id));
}
gpu::Buffer CommandBuffer::GetTransferBuffer(int32 id) {
@@ -228,7 +228,7 @@ gpu::Buffer CommandBuffer::GetTransferBuffer(int32 id) {
base::SharedMemoryHandle handle;
uint32 size;
if (!Send(new PpapiHostMsg_PPBGraphics3D_GetTransferBuffer(
- INTERFACE_ID_PPB_GRAPHICS_3D, resource_, id, &handle, &size))) {
+ API_ID_PPB_GRAPHICS_3D, resource_, id, &handle, &size))) {
return gpu::Buffer();
}
@@ -383,7 +383,7 @@ gpu::CommandBuffer* Graphics3D::GetCommandBuffer() {
int32 Graphics3D::DoSwapBuffers() {
IPC::Message* msg = new PpapiHostMsg_PPBGraphics3D_SwapBuffers(
- INTERFACE_ID_PPB_GRAPHICS_3D, host_resource());
+ API_ID_PPB_GRAPHICS_3D, host_resource());
msg->set_unblock(true);
PluginDispatcher::GetForResource(this)->Send(msg);
@@ -426,7 +426,7 @@ PP_Resource PPB_Graphics3D_Proxy::CreateProxyResource(
HostResource result;
dispatcher->Send(new PpapiHostMsg_PPBGraphics3D_Create(
- INTERFACE_ID_PPB_GRAPHICS_3D, instance, attribs, &result));
+ API_ID_PPB_GRAPHICS_3D, instance, attribs, &result));
if (result.is_null())
return 0;
@@ -584,7 +584,7 @@ void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin(
int32_t result,
const HostResource& context) {
dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK(
- INTERFACE_ID_PPB_GRAPHICS_3D, context, result));
+ API_ID_PPB_GRAPHICS_3D, context, result));
}
} // namespace proxy