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

Unified Diff: webkit/plugins/ppapi/mock_platform_image_2d.h

Issue 11146009: Mac Flash: Fix scaling bitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 8 years, 2 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 | webkit/plugins/ppapi/mock_platform_image_2d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/mock_platform_image_2d.h
diff --git a/webkit/plugins/ppapi/mock_platform_image_2d.h b/webkit/plugins/ppapi/mock_platform_image_2d.h
new file mode 100644
index 0000000000000000000000000000000000000000..296d7eac73dc0272718281dca3c5ca7c0a71df1d
--- /dev/null
+++ b/webkit/plugins/ppapi/mock_platform_image_2d.h
@@ -0,0 +1,31 @@
+// 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 WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_
+#define WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_
+
+#include "webkit/plugins/ppapi/plugin_delegate.h"
+
+namespace webkit {
+namespace ppapi {
+
+class MockPlatformImage2D : public PluginDelegate::PlatformImage2D {
+ public:
+ MockPlatformImage2D(int width, int height);
+ virtual ~MockPlatformImage2D();
+
+ // PlatformImage2D implementation.
+ virtual skia::PlatformCanvas* Map() OVERRIDE;
+ virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const OVERRIDE;
+ virtual TransportDIB* GetTransportDIB() const OVERRIDE;
+
+ private:
+ int width_;
+ int height_;
+};
+
+} // namespace ppapi
+} // namespace webkit
+
+#endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_
« no previous file with comments | « no previous file | webkit/plugins/ppapi/mock_platform_image_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698