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

Unified Diff: content/test/test_blink_web_unit_test_support.h

Issue 2362473002: Adding unit test for DrawingBuffer's bitmap recycling mechanism (Closed)
Patch Set: fix nits Created 4 years, 3 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 | « no previous file | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_blink_web_unit_test_support.h
diff --git a/content/test/test_blink_web_unit_test_support.h b/content/test/test_blink_web_unit_test_support.h
index e6450d716a6ee4f151f837c7e7bf2c9f3eb29c08..64d113a118f08446893610821669ed6da2822ea3 100644
--- a/content/test/test_blink_web_unit_test_support.h
+++ b/content/test/test_blink_web_unit_test_support.h
@@ -33,6 +33,10 @@ class RendererScheduler;
}
}
+namespace cc {
+class TestSharedBitmapManager;
+}
+
namespace content {
// An implementation of BlinkPlatformImpl for tests.
@@ -75,6 +79,9 @@ class TestBlinkWebUnitTestSupport : public BlinkPlatformImpl {
blink::WebThread* currentThread() override;
+ std::unique_ptr<cc::SharedBitmap> allocateSharedBitmap(
+ const blink::WebSize& size) override;
+
void getPluginList(bool refresh,
const blink::WebSecurityOrigin& mainFrameOrigin,
blink::WebPluginListBuilder* builder) override;
@@ -91,6 +98,7 @@ class TestBlinkWebUnitTestSupport : public BlinkPlatformImpl {
cc_blink::WebCompositorSupportImpl compositor_support_;
std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_;
std::unique_ptr<blink::WebThread> web_thread_;
+ std::unique_ptr<cc::TestSharedBitmapManager> shared_bitmap_manager_;
#if defined(OS_WIN) || defined(OS_MACOSX)
blink::WebThemeEngine* active_theme_engine_ = nullptr;
« no previous file with comments | « no previous file | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698