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

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

Issue 6823081: Add Skia to CG adapter for plugins. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 8 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) 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_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // Queries the plugin for supported print formats and sets |format| to the 276 // Queries the plugin for supported print formats and sets |format| to the
277 // best format to use. Returns false if the plugin does not support any 277 // best format to use. Returns false if the plugin does not support any
278 // print format that we can handle (we can handle raster and PDF). 278 // print format that we can handle (we can handle raster and PDF).
279 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); 279 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format);
280 bool PrintPDFOutput(PP_Resource print_output, WebKit::WebCanvas* canvas); 280 bool PrintPDFOutput(PP_Resource print_output, WebKit::WebCanvas* canvas);
281 bool PrintRasterOutput(PP_Resource print_output, WebKit::WebCanvas* canvas); 281 bool PrintRasterOutput(PP_Resource print_output, WebKit::WebCanvas* canvas);
282 #if defined(OS_WIN) 282 #if defined(OS_WIN)
283 bool DrawJPEGToPlatformDC(const SkBitmap& bitmap, 283 bool DrawJPEGToPlatformDC(const SkBitmap& bitmap,
284 const gfx::Rect& printable_area, 284 const gfx::Rect& printable_area,
285 WebKit::WebCanvas* canvas); 285 WebKit::WebCanvas* canvas);
286 #elif defined(OS_MACOSX) 286 #elif defined(OS_MACOSX) && !defined(USE_SKIA)
287 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting 287 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting
288 // at the specified destination rect. 288 // at the specified destination rect.
289 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas, 289 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas,
290 const gfx::Rect& dest_rect, int canvas_height); 290 const gfx::Rect& dest_rect, int canvas_height);
291 #endif // OS_MACOSX 291 #endif // OS_MACOSX
292 292
293 // Get the bound graphics context as a concrete 2D graphics context or returns 293 // Get the bound graphics context as a concrete 2D graphics context or returns
294 // null if the context is not 2D. 294 // null if the context is not 2D.
295 PPB_Graphics2D_Impl* bound_graphics_2d() const; 295 PPB_Graphics2D_Impl* bound_graphics_2d() const;
296 296
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; 417 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap;
418 NPObjectToObjectVarMap np_object_to_object_var_; 418 NPObjectToObjectVarMap np_object_to_object_var_;
419 419
420 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 420 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
421 }; 421 };
422 422
423 } // namespace ppapi 423 } // namespace ppapi
424 } // namespace webkit 424 } // namespace webkit
425 425
426 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 426 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698