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

Unified Diff: content/shell/renderer/test_runner/test_plugin.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/renderer/render_thread_impl.cc ('k') | content/shell/renderer/test_runner/test_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/test_plugin.h
diff --git a/content/shell/renderer/test_runner/test_plugin.h b/content/shell/renderer/test_runner/test_plugin.h
index 34029b9370c1de1c3df5bfc32e8099743dab03b3..50425a706d850c0a921f76e0ace68b892b4e3e9b 100644
--- a/content/shell/renderer/test_runner/test_plugin.h
+++ b/content/shell/renderer/test_runner/test_plugin.h
@@ -24,6 +24,10 @@ class WebFrame;
class WebLayer;
}
+namespace cc {
+class SharedBitmap;
+}
+
namespace content {
class WebTestDelegate;
@@ -139,7 +143,7 @@ class TestPlugin : public blink::WebPlugin, public cc::TextureLayerClient {
const std::string& fragment_source);
// Functions for drawing scene in Software.
- void DrawSceneSoftware(void* memory, size_t bytes);
+ void DrawSceneSoftware(void* memory);
blink::WebFrame* frame_;
WebTestDelegate* delegate_;
@@ -149,7 +153,7 @@ class TestPlugin : public blink::WebPlugin, public cc::TextureLayerClient {
blink::WebGraphicsContext3D* context_;
unsigned color_texture_;
cc::TextureMailbox texture_mailbox_;
- scoped_ptr<base::SharedMemory> shared_bitmap_;
+ scoped_ptr<cc::SharedBitmap> shared_bitmap_;
bool mailbox_changed_;
unsigned framebuffer_;
Scene scene_;
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/shell/renderer/test_runner/test_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698