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

Side by Side Diff: webkit/plugins/ppapi/ppb_graphics_2d_impl.h

Issue 7105013: Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PPB_GRAPHICS_2D_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 virtual ~PPB_Graphics2D_Impl(); 35 virtual ~PPB_Graphics2D_Impl();
36 36
37 // Returns a pointer to the interface implementing PPB_ImageData that is 37 // Returns a pointer to the interface implementing PPB_ImageData that is
38 // exposed to the plugin. 38 // exposed to the plugin.
39 static const PPB_Graphics2D* GetInterface(); 39 static const PPB_Graphics2D* GetInterface();
40 40
41 bool Init(int width, int height, bool is_always_opaque); 41 bool Init(int width, int height, bool is_always_opaque);
42 42
43 bool is_always_opaque() const { return is_always_opaque_; } 43 bool is_always_opaque() const { return is_always_opaque_; }
44 44
45 virtual ::ppapi::thunk::PPB_Graphics2D_API* AsGraphics2D_API(); 45 virtual ::ppapi::thunk::PPB_Graphics2D_API* AsPPB_Graphics2D_API();
46 46
47 // Resource override. 47 // Resource override.
48 virtual PPB_Graphics2D_Impl* AsPPB_Graphics2D_Impl(); 48 virtual PPB_Graphics2D_Impl* AsPPB_Graphics2D_Impl();
49 49
50 // PPB_Graphics2D functions. 50 // PPB_Graphics2D functions.
51 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque); 51 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque);
52 virtual void PaintImageData(PP_Resource image_data, 52 virtual void PaintImageData(PP_Resource image_data,
53 const PP_Point* top_left, 53 const PP_Point* top_left,
54 const PP_Rect* src_rect); 54 const PP_Rect* src_rect);
55 virtual void Scroll(const PP_Rect* clip_rect, const PP_Point* amount); 55 virtual void Scroll(const PP_Rect* clip_rect, const PP_Point* amount);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // This allows us to do more optimized painting in some cases. 178 // This allows us to do more optimized painting in some cases.
179 bool is_always_opaque_; 179 bool is_always_opaque_;
180 180
181 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Impl); 181 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Impl);
182 }; 182 };
183 183
184 } // namespace ppapi 184 } // namespace ppapi
185 } // namespace webkit 185 } // namespace webkit
186 186
187 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_ 187 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698