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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_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: Rebase. Fix lint. 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
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 // This file contains the mock GLES2Decoder class. 5 // This file contains the mock GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); 50 MOCK_METHOD0(GetGLES2Util, GLES2Util*());
51 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); 51 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*());
52 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); 52 MOCK_METHOD0(GetGLContext, gfx::GLContext*());
53 MOCK_METHOD0(GetContextGroup, ContextGroup*()); 53 MOCK_METHOD0(GetContextGroup, ContextGroup*());
54 MOCK_METHOD0(ProcessPendingQueries, bool()); 54 MOCK_METHOD0(ProcessPendingQueries, bool());
55 MOCK_CONST_METHOD0(RestoreState, void()); 55 MOCK_CONST_METHOD0(RestoreState, void());
56 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); 56 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*());
57 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); 57 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*());
58 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&)); 58 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&));
59 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); 59 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*));
60 MOCK_METHOD0(GetAsyncPixelTransferDelegate,
61 gfx::AsyncPixelTransferDelegate*());
62 MOCK_METHOD1(SetAsyncPixelTransferDelegate,
63 void(gfx::AsyncPixelTransferDelegate*));
60 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, 64 MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
61 unsigned int arg_count, 65 unsigned int arg_count,
62 const void* cmd_data)); 66 const void* cmd_data));
63 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, 67 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id,
64 uint32* service_texture_id)); 68 uint32* service_texture_id));
65 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); 69 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason());
66 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); 70 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id));
67 MOCK_METHOD9(ClearLevel, bool( 71 MOCK_METHOD9(ClearLevel, bool(
68 unsigned service_id, 72 unsigned service_id,
69 unsigned bind_target, 73 unsigned bind_target,
(...skipping 12 matching lines...) Expand all
82 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); 86 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta));
83 MOCK_METHOD0(WasContextLost, bool()); 87 MOCK_METHOD0(WasContextLost, bool());
84 88
85 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 89 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
86 }; 90 };
87 91
88 } // namespace gles2 92 } // namespace gles2
89 } // namespace gpu 93 } // namespace gpu
90 94
91 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 95 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698