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

Side by Side Diff: content/renderer/pepper/mock_platform_image_2d.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_MOCK_PLATFORM_IMAGE_2D_H_
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_ 6 #define CONTENT_RENDERER_PEPPER_MOCK_PLATFORM_IMAGE_2D_H_
7 7
8 #include "webkit/plugins/ppapi/plugin_delegate.h" 8 #include "content/renderer/pepper/plugin_delegate.h"
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 10
11 namespace webkit { 11 namespace webkit {
12 namespace ppapi { 12 namespace ppapi {
13 13
14 class MockPlatformImage2D : public PluginDelegate::PlatformImage2D { 14 class MockPlatformImage2D : public PluginDelegate::PlatformImage2D {
15 public: 15 public:
16 MockPlatformImage2D(int width, int height); 16 MockPlatformImage2D(int width, int height);
17 virtual ~MockPlatformImage2D(); 17 virtual ~MockPlatformImage2D();
18 18
19 // PlatformImage2D implementation. 19 // PlatformImage2D implementation.
20 virtual skia::PlatformCanvas* Map() OVERRIDE; 20 virtual skia::PlatformCanvas* Map() OVERRIDE;
21 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const OVERRIDE; 21 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const OVERRIDE;
22 virtual TransportDIB* GetTransportDIB() const OVERRIDE; 22 virtual TransportDIB* GetTransportDIB() const OVERRIDE;
23 23
24 private: 24 private:
25 int width_; 25 int width_;
26 int height_; 26 int height_;
27 }; 27 };
28 28
29 } // namespace ppapi 29 } // namespace ppapi
30 } // namespace webkit 30 } // namespace webkit
31 31
32 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLATFORM_IMAGE_2D_H_ 32 #endif // CONTENT_RENDERER_PEPPER_MOCK_PLATFORM_IMAGE_2D_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/message_channel.cc ('k') | content/renderer/pepper/mock_platform_image_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698