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

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

Issue 14307011: ppapi: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_file_ref_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.cc » ('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/ppb_graphics_3d_proxy.h" 5 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 #include "gpu/command_buffer/common/command_buffer.h" 8 #include "gpu/command_buffer/common/command_buffer.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/proxy/enter_proxy.h" 10 #include "ppapi/proxy/enter_proxy.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 DCHECK(!locking_command_buffer_->need_to_lock()); 287 DCHECK(!locking_command_buffer_->need_to_lock());
288 DCHECK_GT(num_already_locked_calls_, 0); 288 DCHECK_GT(num_already_locked_calls_, 0);
289 ppapi::ProxyLock::AssertAcquired(); 289 ppapi::ProxyLock::AssertAcquired();
290 --num_already_locked_calls_; 290 --num_already_locked_calls_;
291 if (num_already_locked_calls_ == 0) 291 if (num_already_locked_calls_ == 0)
292 locking_command_buffer_->set_need_to_lock(true); 292 locking_command_buffer_->set_need_to_lock(true);
293 } 293 }
294 294
295 PPB_Graphics3D_Proxy::PPB_Graphics3D_Proxy(Dispatcher* dispatcher) 295 PPB_Graphics3D_Proxy::PPB_Graphics3D_Proxy(Dispatcher* dispatcher)
296 : InterfaceProxy(dispatcher), 296 : InterfaceProxy(dispatcher),
297 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 297 callback_factory_(this) {
298 } 298 }
299 299
300 PPB_Graphics3D_Proxy::~PPB_Graphics3D_Proxy() { 300 PPB_Graphics3D_Proxy::~PPB_Graphics3D_Proxy() {
301 } 301 }
302 302
303 // static 303 // static
304 PP_Resource PPB_Graphics3D_Proxy::CreateProxyResource( 304 PP_Resource PPB_Graphics3D_Proxy::CreateProxyResource(
305 PP_Instance instance, 305 PP_Instance instance,
306 PP_Resource share_context, 306 PP_Resource share_context,
307 const int32_t* attrib_list) { 307 const int32_t* attrib_list) {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 int32_t result, 522 int32_t result,
523 const HostResource& context) { 523 const HostResource& context) {
524 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK( 524 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK(
525 API_ID_PPB_GRAPHICS_3D, context, result)); 525 API_ID_PPB_GRAPHICS_3D, context, result));
526 } 526 }
527 #endif // !defined(OS_NACL) 527 #endif // !defined(OS_NACL)
528 528
529 } // namespace proxy 529 } // namespace proxy
530 } // namespace ppapi 530 } // namespace ppapi
531 531
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_file_ref_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698