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

Side by Side Diff: ppapi/proxy/graphics_2d_resource.h

Issue 14335005: Pepper: Autogenerate thunk for PPB_Graphics2D. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased (file deletions in another commit) Created 7 years, 7 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 | « ppapi/ppapi_shared.gypi ('k') | ppapi/proxy/graphics_2d_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_
6 #define PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ 6 #define PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/proxy/plugin_resource.h" 9 #include "ppapi/proxy/plugin_resource.h"
10 #include "ppapi/proxy/ppapi_proxy_export.h" 10 #include "ppapi/proxy/ppapi_proxy_export.h"
(...skipping 20 matching lines...) Expand all
31 virtual thunk::PPB_Graphics2D_API* AsPPB_Graphics2D_API() OVERRIDE; 31 virtual thunk::PPB_Graphics2D_API* AsPPB_Graphics2D_API() OVERRIDE;
32 32
33 // PPB_Graphics2D_API overrides. 33 // PPB_Graphics2D_API overrides.
34 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) OVERRIDE; 34 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) OVERRIDE;
35 virtual void PaintImageData(PP_Resource image_data, 35 virtual void PaintImageData(PP_Resource image_data,
36 const PP_Point* top_left, 36 const PP_Point* top_left,
37 const PP_Rect* src_rect) OVERRIDE; 37 const PP_Rect* src_rect) OVERRIDE;
38 virtual void Scroll(const PP_Rect* clip_rect, 38 virtual void Scroll(const PP_Rect* clip_rect,
39 const PP_Point* amount) OVERRIDE; 39 const PP_Point* amount) OVERRIDE;
40 virtual void ReplaceContents(PP_Resource image_data) OVERRIDE; 40 virtual void ReplaceContents(PP_Resource image_data) OVERRIDE;
41 virtual bool SetScale(float scale) OVERRIDE; 41 virtual PP_Bool SetScale(float scale) OVERRIDE;
42 virtual float GetScale() OVERRIDE; 42 virtual float GetScale() OVERRIDE;
43 virtual int32_t Flush(scoped_refptr<TrackedCallback> callback, 43 virtual int32_t Flush(scoped_refptr<TrackedCallback> callback) OVERRIDE;
44 PP_Resource* old_image_data) OVERRIDE;
45 virtual bool ReadImageData(PP_Resource image, 44 virtual bool ReadImageData(PP_Resource image,
46 const PP_Point* top_left) OVERRIDE; 45 const PP_Point* top_left) OVERRIDE;
47 46
48 private: 47 private:
49 void OnPluginMsgFlushACK(const ResourceMessageReplyParams& params); 48 void OnPluginMsgFlushACK(const ResourceMessageReplyParams& params);
50 49
51 const PP_Size size_; 50 const PP_Size size_;
52 const PP_Bool is_always_opaque_; 51 const PP_Bool is_always_opaque_;
53 float scale_; 52 float scale_;
54 53
55 scoped_refptr<TrackedCallback> current_flush_callback_; 54 scoped_refptr<TrackedCallback> current_flush_callback_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(Graphics2DResource); 56 DISALLOW_COPY_AND_ASSIGN(Graphics2DResource);
58 }; 57 };
59 58
60 } // namespace proxy 59 } // namespace proxy
61 } // namespace ppapi 60 } // namespace ppapi
62 61
63 #endif // PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ 62 #endif // PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/ppapi_shared.gypi ('k') | ppapi/proxy/graphics_2d_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698