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

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

Issue 11275120: Virtual GL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 // 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 MOCK_METHOD2(SetParent, bool(GLES2Decoder* parent, uint32 parent_texture_id)); 45 MOCK_METHOD2(SetParent, bool(GLES2Decoder* parent, uint32 parent_texture_id));
46 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); 46 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size));
47 MOCK_METHOD0(MakeCurrent, bool()); 47 MOCK_METHOD0(MakeCurrent, bool());
48 MOCK_METHOD0(ReleaseCurrent, void()); 48 MOCK_METHOD0(ReleaseCurrent, void());
49 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); 49 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id));
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_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); 56 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*());
56 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); 57 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*());
57 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&)); 58 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&));
58 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); 59 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*));
59 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, 60 MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
60 unsigned int arg_count, 61 unsigned int arg_count,
61 const void* cmd_data)); 62 const void* cmd_data));
62 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, 63 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id,
63 uint32* service_texture_id)); 64 uint32* service_texture_id));
64 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); 65 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason());
(...skipping 15 matching lines...) Expand all
80 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); 81 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta());
81 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); 82 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta));
82 83
83 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 84 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
84 }; 85 };
85 86
86 } // namespace gles2 87 } // namespace gles2
87 } // namespace gpu 88 } // namespace gpu
88 89
89 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 90 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698