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

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

Issue 663363002: Standardize usage of virtual/override/final in gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update generator script Created 6 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/async_pixel_transfer_manager_sync.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_sync.h"
6 6
7 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" 7 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 10
11 // Class which handles async pixel transfers synchronously. 11 // Class which handles async pixel transfers synchronously.
12 class AsyncPixelTransferDelegateSync : public AsyncPixelTransferDelegate { 12 class AsyncPixelTransferDelegateSync : public AsyncPixelTransferDelegate {
13 public: 13 public:
14 explicit AsyncPixelTransferDelegateSync( 14 explicit AsyncPixelTransferDelegateSync(
15 AsyncPixelTransferManagerSync::SharedState* shared_state); 15 AsyncPixelTransferManagerSync::SharedState* shared_state);
16 virtual ~AsyncPixelTransferDelegateSync(); 16 ~AsyncPixelTransferDelegateSync() override;
17 17
18 // Implement AsyncPixelTransferDelegate: 18 // Implement AsyncPixelTransferDelegate:
19 virtual void AsyncTexImage2D( 19 void AsyncTexImage2D(const AsyncTexImage2DParams& tex_params,
20 const AsyncTexImage2DParams& tex_params, 20 const AsyncMemoryParams& mem_params,
21 const AsyncMemoryParams& mem_params, 21 const base::Closure& bind_callback) override;
22 const base::Closure& bind_callback) override; 22 void AsyncTexSubImage2D(const AsyncTexSubImage2DParams& tex_params,
23 virtual void AsyncTexSubImage2D( 23 const AsyncMemoryParams& mem_params) override;
24 const AsyncTexSubImage2DParams& tex_params, 24 bool TransferIsInProgress() override;
25 const AsyncMemoryParams& mem_params) override; 25 void WaitForTransferCompletion() override;
26 virtual bool TransferIsInProgress() override;
27 virtual void WaitForTransferCompletion() override;
28 26
29 private: 27 private:
30 // Safe to hold a raw pointer because SharedState is owned by the Manager 28 // Safe to hold a raw pointer because SharedState is owned by the Manager
31 // which owns the Delegate. 29 // which owns the Delegate.
32 AsyncPixelTransferManagerSync::SharedState* shared_state_; 30 AsyncPixelTransferManagerSync::SharedState* shared_state_;
33 31
34 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateSync); 32 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateSync);
35 }; 33 };
36 34
37 AsyncPixelTransferDelegateSync::AsyncPixelTransferDelegateSync( 35 AsyncPixelTransferDelegateSync::AsyncPixelTransferDelegateSync(
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 130 }
133 131
134 AsyncPixelTransferDelegate* 132 AsyncPixelTransferDelegate*
135 AsyncPixelTransferManagerSync::CreatePixelTransferDelegateImpl( 133 AsyncPixelTransferManagerSync::CreatePixelTransferDelegateImpl(
136 gles2::TextureRef* ref, 134 gles2::TextureRef* ref,
137 const AsyncTexImage2DParams& define_params) { 135 const AsyncTexImage2DParams& define_params) {
138 return new AsyncPixelTransferDelegateSync(&shared_state_); 136 return new AsyncPixelTransferDelegateSync(&shared_state_);
139 } 137 }
140 138
141 } // namespace gpu 139 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_manager_sync.h ('k') | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698