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

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

Issue 1315713007: gpu: Reduce GL context switches used to check pending queries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox)); 52 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox));
53 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); 53 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size));
54 MOCK_METHOD0(MakeCurrent, bool()); 54 MOCK_METHOD0(MakeCurrent, bool());
55 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); 55 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id));
56 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); 56 MOCK_METHOD0(GetGLES2Util, GLES2Util*());
57 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); 57 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*());
58 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); 58 MOCK_METHOD0(GetGLContext, gfx::GLContext*());
59 MOCK_METHOD0(GetContextGroup, ContextGroup*()); 59 MOCK_METHOD0(GetContextGroup, ContextGroup*());
60 MOCK_METHOD0(GetContextState, const ContextState*()); 60 MOCK_METHOD0(GetContextState, const ContextState*());
61 MOCK_METHOD0(GetCapabilities, Capabilities()); 61 MOCK_METHOD0(GetCapabilities, Capabilities());
62 MOCK_METHOD1(ProcessPendingQueries, bool(bool)); 62 MOCK_CONST_METHOD0(HasPendingQueries, bool());
63 MOCK_METHOD0(HasMoreIdleWork, bool()); 63 MOCK_METHOD1(ProcessPendingQueries, void(bool));
64 MOCK_CONST_METHOD0(HasMoreIdleWork, bool());
64 MOCK_METHOD0(PerformIdleWork, void()); 65 MOCK_METHOD0(PerformIdleWork, void());
65 MOCK_METHOD1(RestoreState, void(const ContextState* prev_state)); 66 MOCK_METHOD1(RestoreState, void(const ContextState* prev_state));
66 MOCK_CONST_METHOD0(RestoreActiveTexture, void()); 67 MOCK_CONST_METHOD0(RestoreActiveTexture, void());
67 MOCK_CONST_METHOD1( 68 MOCK_CONST_METHOD1(
68 RestoreAllTextureUnitBindings, void(const ContextState* state)); 69 RestoreAllTextureUnitBindings, void(const ContextState* state));
69 MOCK_CONST_METHOD1( 70 MOCK_CONST_METHOD1(
70 RestoreActiveTextureUnitBinding, void(unsigned int target)); 71 RestoreActiveTextureUnitBinding, void(unsigned int target));
71 MOCK_CONST_METHOD0(RestoreBufferBindings, void()); 72 MOCK_CONST_METHOD0(RestoreBufferBindings, void());
72 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void()); 73 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void());
73 MOCK_CONST_METHOD0(RestoreGlobalState, void()); 74 MOCK_CONST_METHOD0(RestoreGlobalState, void());
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); 125 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool());
125 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); 126 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason));
126 127
127 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 128 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
128 }; 129 };
129 130
130 } // namespace gles2 131 } // namespace gles2
131 } // namespace gpu 132 } // namespace gpu
132 133
133 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 134 #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