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

Unified Diff: gpu/command_buffer/client/client_test_helper.h

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/client/BUILD.gn ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/client_test_helper.h
diff --git a/gpu/command_buffer/client/client_test_helper.h b/gpu/command_buffer/client/client_test_helper.h
index d5450453a1de2f3cbc2f0b016c25d40b3c66dcb9..51c6b6d31eb28c4e5d792e907772dee0a599cc0c 100644
--- a/gpu/command_buffer/client/client_test_helper.h
+++ b/gpu/command_buffer/client/client_test_helper.h
@@ -88,13 +88,17 @@ class MockClientGpuControl : public GpuControl {
virtual ~MockClientGpuControl();
MOCK_METHOD0(GetCapabilities, Capabilities());
- MOCK_METHOD5(CreateGpuMemoryBuffer,
- gfx::GpuMemoryBuffer*(size_t width,
- size_t height,
- unsigned internalformat,
- unsigned usage,
- int32* id));
- MOCK_METHOD1(DestroyGpuMemoryBuffer, void(int32 id));
+ MOCK_METHOD4(CreateImage,
+ int32(ClientBuffer buffer,
+ size_t width,
+ size_t height,
+ unsigned internalformat));
+ MOCK_METHOD1(DestroyImage, void(int32 id));
+ MOCK_METHOD4(CreateGpuMemoryBufferImage,
+ int32(size_t width,
+ size_t height,
+ unsigned internalformat,
+ unsigned usage));
MOCK_METHOD0(InsertSyncPoint, uint32());
MOCK_METHOD0(InsertFutureSyncPoint, uint32());
MOCK_METHOD1(RetireSyncPoint, void(uint32 id));
« no previous file with comments | « gpu/command_buffer/client/BUILD.gn ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698