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

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

Issue 2466003: Expose UpdateOffscreenFrameBufferSize from GLES2Decoder to allow Mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "gfx/size.h" 10 #include "gfx/size.h"
(...skipping 16 matching lines...) Expand all
27 ON_CALL(*this, MakeCurrent()) 27 ON_CALL(*this, MakeCurrent())
28 .WillByDefault(testing::Return(true)); 28 .WillByDefault(testing::Return(true));
29 } 29 }
30 30
31 MOCK_METHOD4(Initialize, bool(gfx::GLContext* context, 31 MOCK_METHOD4(Initialize, bool(gfx::GLContext* context,
32 const gfx::Size& size, 32 const gfx::Size& size,
33 GLES2Decoder* parent, 33 GLES2Decoder* parent,
34 uint32 parent_texture_id)); 34 uint32 parent_texture_id));
35 MOCK_METHOD0(Destroy, void()); 35 MOCK_METHOD0(Destroy, void());
36 MOCK_METHOD1(ResizeOffscreenFrameBuffer, void(const gfx::Size& size)); 36 MOCK_METHOD1(ResizeOffscreenFrameBuffer, void(const gfx::Size& size));
37 MOCK_METHOD0(UpdateOffscreenFrameBufferSize, bool());
37 MOCK_METHOD0(MakeCurrent, bool()); 38 MOCK_METHOD0(MakeCurrent, bool());
38 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); 39 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id));
39 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); 40 MOCK_METHOD0(GetGLES2Util, GLES2Util*());
40 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); 41 MOCK_METHOD0(GetGLContext, gfx::GLContext*());
41 MOCK_METHOD1(SetSwapBuffersCallback, void(Callback0::Type*)); 42 MOCK_METHOD1(SetSwapBuffersCallback, void(Callback0::Type*));
42 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, 43 MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
43 unsigned int arg_count, 44 unsigned int arg_count,
44 const void* cmd_data)); 45 const void* cmd_data));
45 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); 46 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id));
46 47
47 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 48 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
48 }; 49 };
49 50
50 } // namespace gles2 51 } // namespace gles2
51 } // namespace gpu 52 } // namespace gpu
52 53
53 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 54 #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_processor_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698