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

Side by Side Diff: gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_MOCK 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_MOCK
6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_MOCK 6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_MOCK
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" 9 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace gpu { 12 namespace gpu {
13 13
14 class MockAsyncPixelTransferDelegate : public AsyncPixelTransferDelegate { 14 class MockAsyncPixelTransferDelegate : public AsyncPixelTransferDelegate {
15 public: 15 public:
16 MockAsyncPixelTransferDelegate(); 16 MockAsyncPixelTransferDelegate();
17 virtual ~MockAsyncPixelTransferDelegate(); 17 virtual ~MockAsyncPixelTransferDelegate();
18 18
19 // Called in ~MockAsyncPixelTransferDelegate. 19 // Called in ~MockAsyncPixelTransferDelegate.
20 MOCK_METHOD0(Destroy, void()); 20 MOCK_METHOD0(Destroy, void());
21 21
22 // Implement AsyncPixelTransferDelegate. 22 // Implement AsyncPixelTransferDelegate.
23 MOCK_METHOD3(AsyncTexImage2D, 23 MOCK_METHOD3(AsyncTexImage2D,
24 void(const AsyncTexImage2DParams& tex_params, 24 void(const AsyncTexImage2DParams& tex_params,
25 const AsyncMemoryParams& mem_params, 25 const AsyncMemoryParams& mem_params,
26 const base::Closure& bind_callback)); 26 const base::Closure& bind_callback));
27 MOCK_METHOD2(AsyncTexSubImage2D, 27 MOCK_METHOD2(AsyncTexSubImage2D,
28 void(const AsyncTexSubImage2DParams& tex_params, 28 void(const AsyncTexSubImage2DParams& tex_params,
29 const AsyncMemoryParams& mem_params)); 29 const AsyncMemoryParams& mem_params));
30 MOCK_METHOD3(AsyncCompressedTexImage2D,
31 void(const AsyncCompressedTexImage2DParams& tex_params,
32 const AsyncMemoryParams& mem_params,
33 const base::Closure& bind_callback));
34 MOCK_METHOD2(AsyncCompressedTexSubImage2D,
35 void(const AsyncCompressedTexSubImage2DParams& tex_params,
36 const AsyncMemoryParams& mem_params));
30 MOCK_METHOD0(TransferIsInProgress, bool()); 37 MOCK_METHOD0(TransferIsInProgress, bool());
31 MOCK_METHOD0(WaitForTransferCompletion, void()); 38 MOCK_METHOD0(WaitForTransferCompletion, void());
32 39
33 private: 40 private:
34 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate); 41 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate);
35 }; 42 };
36 43
37 } // namespace gpu 44 } // namespace gpu
38 45
39 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_MOCK 46 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_MOCK
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_delegate.h ('k') | gpu/command_buffer/service/async_pixel_transfer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698