Update {virtual,override} to follow C++11 style in ppapi.
The Google style guide states that only one of {virtual,override,final} should be used for each declaration, since override implies virtual and final implies both virtual and override.
This patch was manually generated using a regex and a text editor.
BUG=417463
Review URL: https://codereview.chromium.org/1097393007
Cr-Commit-Position: refs/heads/master@{#326505}
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.h b/ppapi/proxy/ppb_graphics_3d_proxy.h
index 848281e..98e7d3c 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.h
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.h
@@ -34,32 +34,31 @@
class PPAPI_PROXY_EXPORT Graphics3D : public PPB_Graphics3D_Shared {
public:
explicit Graphics3D(const HostResource& resource);
- virtual ~Graphics3D();
+ ~Graphics3D() override;
bool Init(gpu::gles2::GLES2Implementation* share_gles2,
const gpu::Capabilities& capabilities,
const SerializedHandle& shared_state);
// Graphics3DTrusted API. These are not implemented in the proxy.
- virtual PP_Bool SetGetBuffer(int32_t shm_id) override;
- virtual PP_Bool Flush(int32_t put_offset) override;
- virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size,
- int32* id) override;
- virtual PP_Bool DestroyTransferBuffer(int32_t id) override;
- virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start,
- int32_t end) override;
- virtual gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start,
- int32_t end)
- override;
- virtual uint32_t InsertSyncPoint() override;
- virtual uint32_t InsertFutureSyncPoint() override;
- virtual void RetireSyncPoint(uint32_t sync_point) override;
+ PP_Bool SetGetBuffer(int32_t shm_id) override;
+ PP_Bool Flush(int32_t put_offset) override;
+ scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size,
+ int32* id) override;
+ PP_Bool DestroyTransferBuffer(int32_t id) override;
+ gpu::CommandBuffer::State WaitForTokenInRange(int32_t start,
+ int32_t end) override;
+ gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start,
+ int32_t end) override;
+ uint32_t InsertSyncPoint() override;
+ uint32_t InsertFutureSyncPoint() override;
+ void RetireSyncPoint(uint32_t sync_point) override;
private:
// PPB_Graphics3D_Shared overrides.
- virtual gpu::CommandBuffer* GetCommandBuffer() override;
- virtual gpu::GpuControl* GetGpuControl() override;
- virtual int32 DoSwapBuffers() override;
+ gpu::CommandBuffer* GetCommandBuffer() override;
+ gpu::GpuControl* GetGpuControl() override;
+ int32 DoSwapBuffers() override;
scoped_ptr<PpapiCommandBufferProxy> command_buffer_;
@@ -69,7 +68,7 @@
class PPB_Graphics3D_Proxy : public InterfaceProxy {
public:
PPB_Graphics3D_Proxy(Dispatcher* dispatcher);
- virtual ~PPB_Graphics3D_Proxy();
+ ~PPB_Graphics3D_Proxy();
static PP_Resource CreateProxyResource(
PP_Instance instance,
@@ -77,7 +76,7 @@
const int32_t* attrib_list);
// InterfaceProxy implementation.
- virtual bool OnMessageReceived(const IPC::Message& msg);
+ bool OnMessageReceived(const IPC::Message& msg) override;
static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D;