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

Side by Side Diff: content/renderer/pepper/ppb_graphics_3d_impl.h

Issue 505013002: Remove implicit conversions from scoped_refptr to T* in content/renderer/pepper/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
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 CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "gpu/command_buffer/common/mailbox.h" 9 #include "gpu/command_buffer/common/mailbox.h"
10 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" 10 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void ViewInitiatedPaint(); 50 void ViewInitiatedPaint();
51 void ViewFlushedPaint(); 51 void ViewFlushedPaint();
52 52
53 void GetBackingMailbox(gpu::Mailbox* mailbox, uint32* sync_point) { 53 void GetBackingMailbox(gpu::Mailbox* mailbox, uint32* sync_point) {
54 *mailbox = mailbox_; 54 *mailbox = mailbox_;
55 *sync_point = sync_point_; 55 *sync_point = sync_point_;
56 } 56 }
57 57
58 int GetCommandBufferRouteId(); 58 int GetCommandBufferRouteId();
59 59
60 GpuChannelHost* channel() { return channel_; } 60 GpuChannelHost* channel() { return channel_.get(); }
61 61
62 protected: 62 protected:
63 virtual ~PPB_Graphics3D_Impl(); 63 virtual ~PPB_Graphics3D_Impl();
64 // ppapi::PPB_Graphics3D_Shared overrides. 64 // ppapi::PPB_Graphics3D_Shared overrides.
65 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE; 65 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE;
66 virtual gpu::GpuControl* GetGpuControl() OVERRIDE; 66 virtual gpu::GpuControl* GetGpuControl() OVERRIDE;
67 virtual int32 DoSwapBuffers() OVERRIDE; 67 virtual int32 DoSwapBuffers() OVERRIDE;
68 68
69 private: 69 private:
70 explicit PPB_Graphics3D_Impl(PP_Instance instance); 70 explicit PPB_Graphics3D_Impl(PP_Instance instance);
(...skipping 20 matching lines...) Expand all
91 CommandBufferProxyImpl* command_buffer_; 91 CommandBufferProxyImpl* command_buffer_;
92 92
93 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 93 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 95 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
96 }; 96 };
97 97
98 } // namespace content 98 } // namespace content
99 99
100 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 100 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_url_request_unittest.cc ('k') | content/renderer/pepper/v8_var_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698