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

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

Issue 1149233004: Android: Enable 'crash GPU process on context lost' WAR for Mali-400 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 MOCK_METHOD1( 82 MOCK_METHOD1(
83 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); 83 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&));
84 MOCK_METHOD0(GetAsyncPixelTransferDelegate, 84 MOCK_METHOD0(GetAsyncPixelTransferDelegate,
85 AsyncPixelTransferDelegate*()); 85 AsyncPixelTransferDelegate*());
86 MOCK_METHOD0(GetAsyncPixelTransferManager, 86 MOCK_METHOD0(GetAsyncPixelTransferManager,
87 AsyncPixelTransferManager*()); 87 AsyncPixelTransferManager*());
88 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); 88 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void());
89 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, 89 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest,
90 void(AsyncPixelTransferManager*)); 90 void(AsyncPixelTransferManager*));
91 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore)); 91 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore));
92 MOCK_METHOD1(SetAllowExit, void(bool allow));
92 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, 93 MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
93 unsigned int arg_count, 94 unsigned int arg_count,
94 const void* cmd_data)); 95 const void* cmd_data));
95 MOCK_METHOD4(DoCommands, 96 MOCK_METHOD4(DoCommands,
96 error::Error(unsigned int num_commands, 97 error::Error(unsigned int num_commands,
97 const void* buffer, 98 const void* buffer,
98 int num_entries, 99 int num_entries,
99 int* entries_processed)); 100 int* entries_processed));
100 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, 101 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id,
101 uint32* service_texture_id)); 102 uint32* service_texture_id));
(...skipping 26 matching lines...) Expand all
128 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); 129 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool());
129 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); 130 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason));
130 131
131 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 132 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
132 }; 133 };
133 134
134 } // namespace gles2 135 } // namespace gles2
135 } // namespace gpu 136 } // namespace gpu
136 137
137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 138 #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/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698