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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/plugins/ppapi/mock_platform_image_2d.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_
7
8 #include "webkit/plugins/ppapi/plugin_delegate.h"
9
10 namespace webkit {
11 namespace ppapi {
12
13 class MockPlatformImage2D : public PluginDelegate::PlatformImage2D {
14 public:
15 MockPlatformImage2D(int width, int height);
16 virtual ~MockPlatformImage2D();
17
18 // PlatformImage2D implementation.
19 virtual skia::PlatformCanvas* Map() OVERRIDE;
20 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const OVERRIDE;
21 virtual TransportDIB* GetTransportDIB() const OVERRIDE;
22
23 private:
24 int width_;
25 int height_;
26 };
27
28 } // namespace ppapi
29 } // namespace webkit
30
31 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_
OLDNEW
« 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