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

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

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 | « webkit/plugins/ppapi/mock_platform_image_2d.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.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.cc
diff --git a/webkit/plugins/ppapi/mock_platform_image_2d.cc b/webkit/plugins/ppapi/mock_platform_image_2d.cc
new file mode 100644
index 0000000000000000000000000000000000000000..197a3e0673e5837db05978519f31fc8bede05277
--- /dev/null
+++ b/webkit/plugins/ppapi/mock_platform_image_2d.cc
@@ -0,0 +1,34 @@
+// 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.
+
+#include "webkit/plugins/ppapi/mock_platform_image_2d.h"
+
+#include "skia/ext/platform_canvas.h"
+
+namespace webkit {
+namespace ppapi {
+
+MockPlatformImage2D::MockPlatformImage2D(int width, int height)
+ : width_(width),
+ height_(height) {
+}
+
+MockPlatformImage2D::~MockPlatformImage2D() {
+}
+
+skia::PlatformCanvas* MockPlatformImage2D::Map() {
+ return new skia::PlatformCanvas(width_, height_, true);
+}
+
+intptr_t MockPlatformImage2D::GetSharedMemoryHandle(uint32* byte_count) const {
+ *byte_count = 0;
+ return 0;
+}
+
+TransportDIB* MockPlatformImage2D::GetTransportDIB() const {
+ return NULL;
+}
+
+} // namespace ppapi
+} // namespace webkit
« no previous file with comments | « webkit/plugins/ppapi/mock_platform_image_2d.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698