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

Unified Diff: content/public/test/mock_render_thread.h

Issue 783573003: Make TestPlugin allocate its bitmap with SharedBitmapManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « content/public/renderer/render_thread.h ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_thread.h
diff --git a/content/public/test/mock_render_thread.h b/content/public/test/mock_render_thread.h
index 719fb10854f8e40db29566a6fd433f8bdae62b3f..245fb04de6353590d2f1547fac2744adce964067 100644
--- a/content/public/test/mock_render_thread.h
+++ b/content/public/test/mock_render_thread.h
@@ -8,6 +8,7 @@
#include "base/memory/shared_memory.h"
#include "base/observer_list.h"
#include "base/strings/string16.h"
+#include "cc/test/test_shared_bitmap_manager.h"
#include "content/public/renderer/render_thread.h"
#include "ipc/ipc_test_sink.h"
#include "ipc/message_filter.h"
@@ -56,6 +57,7 @@ class MockRenderThread : public RenderThread {
void RecordComputedAction(const std::string& action) override;
scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer(
size_t buffer_size) override;
+ cc::SharedBitmapManager* GetSharedBitmapManager() override;
void RegisterExtension(v8::Extension* extension) override;
void ScheduleIdleHandler(int64 initial_delay_ms) override;
void IdleHandler() override;
@@ -162,6 +164,8 @@ class MockRenderThread : public RenderThread {
// Observers to notify.
ObserverList<RenderProcessObserver> observers_;
+
+ cc::TestSharedBitmapManager shared_bitmap_manager_;
};
} // namespace content
« no previous file with comments | « content/public/renderer/render_thread.h ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698