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

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

Issue 11428140: gpu: Add async pixel transfer interface, stub and tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address Feedback. Created 8 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/async_pixel_transfer_delegate_mock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_
6 #define UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_
7
8 #include "base/basictypes.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "ui/gl/async_pixel_transfer_delegate.h"
11
12 namespace gfx {
13
14 class MockAsyncPixelTransferState : public gfx::AsyncPixelTransferState {
15 public:
16 MockAsyncPixelTransferState();
17
18 // Implement AsyncPixelTransferState.
19 MOCK_METHOD0(TransferIsInProgress, bool());
20 MOCK_METHOD1(BindTransfer, void(AsyncTexImage2DParams* level_params));
21
22 protected:
23 virtual ~MockAsyncPixelTransferState();
24 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferState);
25 };
26
27 class MockAsyncPixelTransferDelegate : public gfx::AsyncPixelTransferDelegate {
28 public:
29 MockAsyncPixelTransferDelegate();
30 virtual ~MockAsyncPixelTransferDelegate();
31
32 // Implement AsyncPixelTransferDelegate.
33 MOCK_METHOD1(CreateRawPixelTransferState,
34 gfx::AsyncPixelTransferState*(GLuint service_id));
35 MOCK_METHOD1(AsyncNotifyCompletion,
36 void(const base::Closure& task));
37 MOCK_METHOD3(AsyncTexImage2D,
38 void(gfx::AsyncPixelTransferState*,
39 const AsyncTexImage2DParams& tex_params,
40 const AsyncMemoryParams& mem_params));
41 MOCK_METHOD3(AsyncTexSubImage2D,
42 void(gfx::AsyncPixelTransferState*,
43 const AsyncTexSubImage2DParams& tex_params,
44 const AsyncMemoryParams& mem_params));
45
46 private:
47 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate);
48 };
49
50 } // namespace gfx
51
52 #endif // UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_
53
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/async_pixel_transfer_delegate_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698