OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |