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

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

Issue 12321068: Add GL State Restoring Functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 // 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_CONST_METHOD0(RestoreState, void());
56 MOCK_CONST_METHOD0(RestoreActiveTexture, void());
57 MOCK_CONST_METHOD1(RestoreAttribute, void(unsigned index));
58 MOCK_CONST_METHOD0(RestoreBufferBindings, void());
59 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void());
60 MOCK_CONST_METHOD0(RestoreGlobalState, void());
61 MOCK_CONST_METHOD0(RestoreProgramBindings, void());
62 MOCK_CONST_METHOD0(RestoreRenderbufferBindings, void());
63 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id));
64 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit));
56 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); 65 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*());
57 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); 66 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*());
58 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&)); 67 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&));
59 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); 68 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*));
60 MOCK_METHOD0(GetAsyncPixelTransferDelegate, 69 MOCK_METHOD0(GetAsyncPixelTransferDelegate,
61 gfx::AsyncPixelTransferDelegate*()); 70 gfx::AsyncPixelTransferDelegate*());
62 MOCK_METHOD1(SetAsyncPixelTransferDelegate, 71 MOCK_METHOD1(SetAsyncPixelTransferDelegate,
63 void(gfx::AsyncPixelTransferDelegate*)); 72 void(gfx::AsyncPixelTransferDelegate*));
64 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, 73 MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
65 unsigned int arg_count, 74 unsigned int arg_count,
(...skipping 21 matching lines...) Expand all
87 MOCK_METHOD0(WasContextLost, bool()); 96 MOCK_METHOD0(WasContextLost, bool());
88 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); 97 MOCK_METHOD1(LoseContext, void(uint32 reset_status));
89 98
90 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 99 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
91 }; 100 };
92 101
93 } // namespace gles2 102 } // namespace gles2
94 } // namespace gpu 103 } // namespace gpu
95 104
96 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 105 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698