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

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

Issue 10031036: Revert 131177 - aura: Change shared context to be offscreen for arm (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 14 matching lines...) Expand all
25 namespace gles2 { 25 namespace gles2 {
26 26
27 class ContextGroup; 27 class ContextGroup;
28 class QueryManager; 28 class QueryManager;
29 29
30 class MockGLES2Decoder : public GLES2Decoder { 30 class MockGLES2Decoder : public GLES2Decoder {
31 public: 31 public:
32 MockGLES2Decoder(); 32 MockGLES2Decoder();
33 virtual ~MockGLES2Decoder(); 33 virtual ~MockGLES2Decoder();
34 34
35 MOCK_METHOD7(Initialize, 35 MOCK_METHOD6(Initialize,
36 bool(const scoped_refptr<gfx::GLSurface>& surface, 36 bool(const scoped_refptr<gfx::GLSurface>& surface,
37 const scoped_refptr<gfx::GLContext>& context, 37 const scoped_refptr<gfx::GLContext>& context,
38 bool offscreen,
39 const gfx::Size& size, 38 const gfx::Size& size,
40 const DisallowedFeatures& disallowed_features, 39 const DisallowedFeatures& disallowed_features,
41 const char* allowed_extensions, 40 const char* allowed_extensions,
42 const std::vector<int32>& attribs)); 41 const std::vector<int32>& attribs));
43 MOCK_METHOD0(Destroy, void()); 42 MOCK_METHOD0(Destroy, void());
44 MOCK_METHOD2(SetParent, bool(GLES2Decoder* parent, uint32 parent_texture_id)); 43 MOCK_METHOD2(SetParent, bool(GLES2Decoder* parent, uint32 parent_texture_id));
45 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); 44 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size));
46 MOCK_METHOD0(MakeCurrent, bool()); 45 MOCK_METHOD0(MakeCurrent, bool());
47 MOCK_METHOD0(ReleaseCurrent, void()); 46 MOCK_METHOD0(ReleaseCurrent, void());
48 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); 47 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id));
(...skipping 24 matching lines...) Expand all
73 bool is_texture_immutable)); 72 bool is_texture_immutable));
74 MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback)); 73 MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback));
75 74
76 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 75 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
77 }; 76 };
78 77
79 } // namespace gles2 78 } // namespace gles2
80 } // namespace gpu 79 } // namespace gpu
81 80
82 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 81 #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/gles2_cmd_decoder_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698