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

Unified Diff: content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use the correct baseline Created 8 years, 4 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
Index: content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
diff --git a/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h b/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f2b7b8d01607f508c039283c9ce74113ef00943
--- /dev/null
+++ b/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_
+#define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_
+
+#include "content/renderer/browser_plugin/browser_plugin_texture_provider.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace content {
+
+class MockBrowserPluginTextureProvider : public BrowserPluginTextureProvider {
+ public:
+ MockBrowserPluginTextureProvider(
+ int instance_id,
+ int routing_id,
+ IPC::ChannelProxy* channel_proxy);
+ virtual ~MockBrowserPluginTextureProvider() OVERRIDE;
+
+ MOCK_METHOD1(Resize, void(const gfx::Size&));
+ MOCK_METHOD1(SurfaceResize, void(const gfx::Size&));
+ MOCK_METHOD2(SetDelayedSwap, void(uint64, const BrowserPlugin_SwapInfo&));
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_BROWSER_PLUGIN_WEB_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698