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

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

Issue 15685003: Part 2/3 (GL) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-resolve against head Created 7 years, 7 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | ppapi/lib/gl/include/GLES2/gl2ext.h » ('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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 MOCK_CONST_METHOD1(RestoreAttribute, void(unsigned index)); 61 MOCK_CONST_METHOD1(RestoreAttribute, void(unsigned index));
62 MOCK_CONST_METHOD0(RestoreBufferBindings, void()); 62 MOCK_CONST_METHOD0(RestoreBufferBindings, void());
63 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void()); 63 MOCK_CONST_METHOD0(RestoreFramebufferBindings, void());
64 MOCK_CONST_METHOD0(RestoreGlobalState, void()); 64 MOCK_CONST_METHOD0(RestoreGlobalState, void());
65 MOCK_CONST_METHOD0(RestoreProgramBindings, void()); 65 MOCK_CONST_METHOD0(RestoreProgramBindings, void());
66 MOCK_CONST_METHOD0(RestoreRenderbufferBindings, void()); 66 MOCK_CONST_METHOD0(RestoreRenderbufferBindings, void());
67 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id)); 67 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id));
68 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit)); 68 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit));
69 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); 69 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*());
70 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); 70 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*());
71 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&)); 71 MOCK_METHOD1(
72 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&));
72 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); 73 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*));
73 MOCK_METHOD0(GetAsyncPixelTransferDelegate, 74 MOCK_METHOD0(GetAsyncPixelTransferDelegate,
74 AsyncPixelTransferDelegate*()); 75 AsyncPixelTransferDelegate*());
75 MOCK_METHOD1(SetAsyncPixelTransferDelegate, 76 MOCK_METHOD1(SetAsyncPixelTransferDelegate,
76 void(AsyncPixelTransferDelegate*)); 77 void(AsyncPixelTransferDelegate*));
77 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, 78 MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
78 unsigned int arg_count, 79 unsigned int arg_count,
79 const void* cmd_data)); 80 const void* cmd_data));
80 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, 81 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id,
81 uint32* service_texture_id)); 82 uint32* service_texture_id));
(...skipping 23 matching lines...) Expand all
105 MOCK_METHOD0(WasContextLost, bool()); 106 MOCK_METHOD0(WasContextLost, bool());
106 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); 107 MOCK_METHOD1(LoseContext, void(uint32 reset_status));
107 108
108 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 109 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
109 }; 110 };
110 111
111 } // namespace gles2 112 } // namespace gles2
112 } // namespace gpu 113 } // namespace gpu
113 114
114 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 115 #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') | ppapi/lib/gl/include/GLES2/gl2ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698