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

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

Issue 23234003: Support stream textures with the synchronous compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android clang Created 7 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_MOCK_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_MOCK_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_MOCK_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_MOCK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "gpu/command_buffer/service/stream_texture_manager.h" 9 #include "gpu/command_buffer/service/stream_texture_manager.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace gpu { 12 namespace gpu {
13 13
14 class StreamTexture; 14 class StreamTexture;
15 15
16 class MockStreamTextureManager : public StreamTextureManager { 16 class MockStreamTextureManager : public StreamTextureManager {
17 public: 17 public:
18 MockStreamTextureManager(); 18 MockStreamTextureManager();
19 virtual ~MockStreamTextureManager(); 19 virtual ~MockStreamTextureManager();
20 20
21 MOCK_METHOD2(CreateStreamTexture, GLuint(uint32 service_id, 21 MOCK_METHOD2(CreateStreamTexture,
22 uint32 client_id)); 22 uint32(uint32 service_id, uint32 client_id));
23 MOCK_METHOD1(DestroyStreamTexture, void(uint32 service_id)); 23 MOCK_METHOD1(DestroyStreamTexture, void(uint32 service_id));
24 MOCK_METHOD1(LookupStreamTexture, StreamTexture*(uint32 service_id)); 24 MOCK_METHOD1(LookupStreamTexture, StreamTexture*(uint32 service_id));
25 25
26 private: 26 private:
27 DISALLOW_COPY_AND_ASSIGN(MockStreamTextureManager); 27 DISALLOW_COPY_AND_ASSIGN(MockStreamTextureManager);
28 }; 28 };
29 29
30 } // namespace gpu 30 } // namespace gpu
31 31
32 #endif // GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_MOCK_H_ 32 #endif // GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_MOCK_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/stream_texture_manager_in_process_android.cc ('k') | gpu/command_buffer_service.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698