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

Side by Side Diff: webkit/glue/plugins/pepper_graphics_2d.h

Issue 5741001: Even more virtual method deinlining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (windows) Created 10 years 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/glue/media/buffered_data_source.cc ('k') | webkit/glue/plugins/pepper_graphics_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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GLUE_PLUGINS_PEPPER_GRAPHICS_2D_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_GRAPHICS_2D_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_GRAPHICS_2D_H_ 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_GRAPHICS_2D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Returns a pointer to the interface implementing PPB_ImageData that is 33 // Returns a pointer to the interface implementing PPB_ImageData that is
34 // exposed to the plugin. 34 // exposed to the plugin.
35 static const PPB_Graphics2D* GetInterface(); 35 static const PPB_Graphics2D* GetInterface();
36 36
37 bool Init(int width, int height, bool is_always_opaque); 37 bool Init(int width, int height, bool is_always_opaque);
38 38
39 bool is_always_opaque() const { return is_always_opaque_; } 39 bool is_always_opaque() const { return is_always_opaque_; }
40 40
41 // Resource override. 41 // Resource override.
42 virtual Graphics2D* AsGraphics2D() { return this; } 42 virtual Graphics2D* AsGraphics2D();
43 43
44 // PPB_Graphics2D functions. 44 // PPB_Graphics2D functions.
45 PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque); 45 PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque);
46 void PaintImageData(PP_Resource image_data, 46 void PaintImageData(PP_Resource image_data,
47 const PP_Point* top_left, 47 const PP_Point* top_left,
48 const PP_Rect* src_rect); 48 const PP_Rect* src_rect);
49 void Scroll(const PP_Rect* clip_rect, const PP_Point* amount); 49 void Scroll(const PP_Rect* clip_rect, const PP_Point* amount);
50 void ReplaceContents(PP_Resource image_data); 50 void ReplaceContents(PP_Resource image_data);
51 int32_t Flush(const PP_CompletionCallback& callback); 51 int32_t Flush(const PP_CompletionCallback& callback);
52 52
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Set to true if the plugin declares that this device will always be opaque. 171 // Set to true if the plugin declares that this device will always be opaque.
172 // This allows us to do more optimized painting in some cases. 172 // This allows us to do more optimized painting in some cases.
173 bool is_always_opaque_; 173 bool is_always_opaque_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(Graphics2D); 175 DISALLOW_COPY_AND_ASSIGN(Graphics2D);
176 }; 176 };
177 177
178 } // namespace pepper 178 } // namespace pepper
179 179
180 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_GRAPHICS_2D_H_ 180 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_GRAPHICS_2D_H_
OLDNEW
« no previous file with comments | « webkit/glue/media/buffered_data_source.cc ('k') | webkit/glue/plugins/pepper_graphics_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698