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

Unified Diff: gpu/command_buffer/client/gles2_implementation_unittest.cc

Issue 2866973003: Fix global dumps to be dumped only when shared memory is actually used
Patch Set: Remove change for GpuMemoryBuffer Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/client/mapped_memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation_unittest.cc
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest.cc b/gpu/command_buffer/client/gles2_implementation_unittest.cc
index f193dc5544565130b0f5a934d5a47cb5db9a56cf..ef9dec058b6ff95481b4fc65ebf4a0fa4b603565 100644
--- a/gpu/command_buffer/client/gles2_implementation_unittest.cc
+++ b/gpu/command_buffer/client/gles2_implementation_unittest.cc
@@ -149,6 +149,7 @@ class MockTransferBuffer : public TransferBufferInterface {
void FreePendingToken(void* p, unsigned int /* token */) override;
unsigned int GetSize() const override;
unsigned int GetFreeSize() const override;
+ bool is_shared() const override;
size_t MaxTransferBufferSize() {
return size_ - result_size_;
@@ -329,6 +330,10 @@ unsigned int MockTransferBuffer::GetFreeSize() const {
return 0;
}
+bool MockTransferBuffer::is_shared() const {
+ return false;
+}
+
// API wrapper for Buffers.
class GenBuffersAPI {
public:
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/client/mapped_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698