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

Side by Side Diff: ppapi/proxy/ppb_graphics_3d_proxy.h

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr Created 4 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
« no previous file with comments | « ppapi/proxy/ppb_flash_message_loop_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.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 #ifndef PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
6 #define PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 6 #define PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start, 55 gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start,
56 int32_t end) override; 56 int32_t end) override;
57 void EnsureWorkVisible() override; 57 void EnsureWorkVisible() override;
58 58
59 private: 59 private:
60 // PPB_Graphics3D_Shared overrides. 60 // PPB_Graphics3D_Shared overrides.
61 gpu::CommandBuffer* GetCommandBuffer() override; 61 gpu::CommandBuffer* GetCommandBuffer() override;
62 gpu::GpuControl* GetGpuControl() override; 62 gpu::GpuControl* GetGpuControl() override;
63 int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) override; 63 int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) override;
64 64
65 scoped_ptr<PpapiCommandBufferProxy> command_buffer_; 65 std::unique_ptr<PpapiCommandBufferProxy> command_buffer_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(Graphics3D); 67 DISALLOW_COPY_AND_ASSIGN(Graphics3D);
68 }; 68 };
69 69
70 class PPB_Graphics3D_Proxy : public InterfaceProxy { 70 class PPB_Graphics3D_Proxy : public InterfaceProxy {
71 public: 71 public:
72 explicit PPB_Graphics3D_Proxy(Dispatcher* dispatcher); 72 explicit PPB_Graphics3D_Proxy(Dispatcher* dispatcher);
73 ~PPB_Graphics3D_Proxy(); 73 ~PPB_Graphics3D_Proxy();
74 74
75 static PP_Resource CreateProxyResource( 75 static PP_Resource CreateProxyResource(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; 121 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 123 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
124 }; 124 };
125 125
126 } // namespace proxy 126 } // namespace proxy
127 } // namespace ppapi 127 } // namespace ppapi
128 128
129 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 129 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
130 130
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_flash_message_loop_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698