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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_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 // 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_METHOD0(HasMoreIdleWork, bool());
56 MOCK_METHOD0(PerformIdleWork, void());
55 MOCK_CONST_METHOD0(RestoreState, void()); 57 MOCK_CONST_METHOD0(RestoreState, void());
56 MOCK_CONST_METHOD0(RestoreActiveTexture, void()); 58 MOCK_CONST_METHOD0(RestoreActiveTexture, void());
57 MOCK_CONST_METHOD1(RestoreAttribute, void(unsigned index)); 59 MOCK_CONST_METHOD1(RestoreAttribute, void(unsigned index));
58 MOCK_CONST_METHOD0(RestoreBufferBindings, void()); 60 MOCK_CONST_METHOD0(RestoreBufferBindings, void());
59 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void()); 61 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void());
60 MOCK_CONST_METHOD0(RestoreGlobalState, void()); 62 MOCK_CONST_METHOD0(RestoreGlobalState, void());
61 MOCK_CONST_METHOD0(RestoreProgramBindings, void()); 63 MOCK_CONST_METHOD0(RestoreProgramBindings, void());
62 MOCK_CONST_METHOD0(RestoreRenderbufferBindings, void()); 64 MOCK_CONST_METHOD0(RestoreRenderbufferBindings, void());
63 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id)); 65 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id));
64 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit)); 66 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit));
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 MOCK_METHOD0(WasContextLost, bool()); 122 MOCK_METHOD0(WasContextLost, bool());
121 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); 123 MOCK_METHOD1(LoseContext, void(uint32 reset_status));
122 124
123 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 125 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
124 }; 126 };
125 127
126 } // namespace gles2 128 } // namespace gles2
127 } // namespace gpu 129 } // namespace gpu
128 130
129 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 131 #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/gpu_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698