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

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

Issue 12211144: Revert 181883 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.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 #ifndef UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ 5 #ifndef UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_
6 #define UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ 6 #define UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "ui/gl/async_pixel_transfer_delegate.h" 10 #include "ui/gl/async_pixel_transfer_delegate.h"
(...skipping 14 matching lines...) Expand all
25 }; 25 };
26 26
27 class MockAsyncPixelTransferDelegate : public gfx::AsyncPixelTransferDelegate { 27 class MockAsyncPixelTransferDelegate : public gfx::AsyncPixelTransferDelegate {
28 public: 28 public:
29 MockAsyncPixelTransferDelegate(); 29 MockAsyncPixelTransferDelegate();
30 virtual ~MockAsyncPixelTransferDelegate(); 30 virtual ~MockAsyncPixelTransferDelegate();
31 31
32 // Implement AsyncPixelTransferDelegate. 32 // Implement AsyncPixelTransferDelegate.
33 MOCK_METHOD1(CreateRawPixelTransferState, 33 MOCK_METHOD1(CreateRawPixelTransferState,
34 gfx::AsyncPixelTransferState*(GLuint service_id)); 34 gfx::AsyncPixelTransferState*(GLuint service_id));
35 MOCK_METHOD2(AsyncNotifyCompletion, 35 MOCK_METHOD1(AsyncNotifyCompletion,
36 void(const AsyncMemoryParams& mem_params, 36 void(const base::Closure& task));
37 const CompletionCallback& callback));
38 MOCK_METHOD3(AsyncTexImage2D, 37 MOCK_METHOD3(AsyncTexImage2D,
39 void(gfx::AsyncPixelTransferState*, 38 void(gfx::AsyncPixelTransferState*,
40 const AsyncTexImage2DParams& tex_params, 39 const AsyncTexImage2DParams& tex_params,
41 const AsyncMemoryParams& mem_params)); 40 const AsyncMemoryParams& mem_params));
42 MOCK_METHOD3(AsyncTexSubImage2D, 41 MOCK_METHOD3(AsyncTexSubImage2D,
43 void(gfx::AsyncPixelTransferState*, 42 void(gfx::AsyncPixelTransferState*,
44 const AsyncTexSubImage2DParams& tex_params, 43 const AsyncTexSubImage2DParams& tex_params,
45 const AsyncMemoryParams& mem_params)); 44 const AsyncMemoryParams& mem_params));
46 MOCK_METHOD0(GetTextureUploadCount, uint32()); 45 MOCK_METHOD0(GetTextureUploadCount, uint32());
47 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); 46 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta());
48 47
49 private: 48 private:
50 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate); 49 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate);
51 }; 50 };
52 51
53 } // namespace gfx 52 } // namespace gfx
54 53
55 #endif // UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ 54 #endif // UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_
56 55
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698