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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 515943002: Manual fixups in gpu/ for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 }; 532 };
533 533
534 class AsyncUploadTokenCompletionObserver 534 class AsyncUploadTokenCompletionObserver
535 : public AsyncPixelTransferCompletionObserver { 535 : public AsyncPixelTransferCompletionObserver {
536 public: 536 public:
537 explicit AsyncUploadTokenCompletionObserver(uint32 async_upload_token) 537 explicit AsyncUploadTokenCompletionObserver(uint32 async_upload_token)
538 : async_upload_token_(async_upload_token) { 538 : async_upload_token_(async_upload_token) {
539 } 539 }
540 540
541 virtual void DidComplete(const AsyncMemoryParams& mem_params) OVERRIDE { 541 virtual void DidComplete(const AsyncMemoryParams& mem_params) OVERRIDE {
542 DCHECK(mem_params.buffer()); 542 DCHECK(mem_params.buffer().get());
543 void* data = mem_params.GetDataAddress(); 543 void* data = mem_params.GetDataAddress();
544 AsyncUploadSync* sync = static_cast<AsyncUploadSync*>(data); 544 AsyncUploadSync* sync = static_cast<AsyncUploadSync*>(data);
545 sync->SetAsyncUploadToken(async_upload_token_); 545 sync->SetAsyncUploadToken(async_upload_token_);
546 } 546 }
547 547
548 private: 548 private:
549 virtual ~AsyncUploadTokenCompletionObserver() { 549 virtual ~AsyncUploadTokenCompletionObserver() {
550 } 550 }
551 551
552 uint32 async_upload_token_; 552 uint32 async_upload_token_;
(...skipping 10463 matching lines...) Expand 10 before | Expand all | Expand 10 after
11016 } 11016 }
11017 } 11017 }
11018 11018
11019 // Include the auto-generated part of this file. We split this because it means 11019 // Include the auto-generated part of this file. We split this because it means
11020 // we can easily edit the non-auto generated parts right here in this file 11020 // we can easily edit the non-auto generated parts right here in this file
11021 // instead of having to edit some template or the code generator. 11021 // instead of having to edit some template or the code generator.
11022 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 11022 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
11023 11023
11024 } // namespace gles2 11024 } // namespace gles2
11025 } // namespace gpu 11025 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698