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

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

Issue 12040049: gpu: Implement idle async pixel transfers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DCHECKs to ensure idle async uploads are only used with GL_TEXTURE_2D target Created 7 years, 9 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const AsyncTexImage2DParams& tex_params, 42 const AsyncTexImage2DParams& tex_params,
43 const AsyncMemoryParams& mem_params, 43 const AsyncMemoryParams& mem_params,
44 const base::Closure& bind_callback)); 44 const base::Closure& bind_callback));
45 MOCK_METHOD3(AsyncTexSubImage2D, 45 MOCK_METHOD3(AsyncTexSubImage2D,
46 void(gfx::AsyncPixelTransferState*, 46 void(gfx::AsyncPixelTransferState*,
47 const AsyncTexSubImage2DParams& tex_params, 47 const AsyncTexSubImage2DParams& tex_params,
48 const AsyncMemoryParams& mem_params)); 48 const AsyncMemoryParams& mem_params));
49 MOCK_METHOD1(WaitForTransferCompletion, void(gfx::AsyncPixelTransferState*)); 49 MOCK_METHOD1(WaitForTransferCompletion, void(gfx::AsyncPixelTransferState*));
50 MOCK_METHOD0(GetTextureUploadCount, uint32()); 50 MOCK_METHOD0(GetTextureUploadCount, uint32());
51 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); 51 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta());
52 MOCK_METHOD0(ProcessMorePendingTransfers, bool());
53 MOCK_METHOD0(NeedsProcessMorePendingTransfers, bool());
52 54
53 private: 55 private:
54 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate); 56 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate);
55 }; 57 };
56 58
57 } // namespace gfx 59 } // namespace gfx
58 60
59 #endif // UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ 61 #endif // UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_
60 62
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698