[email protected] | e2adfc4 | 2013-08-08 23:35:17 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CONTENT_RENDERER_SAD_PLUGIN_H_ |
| 6 | #define CONTENT_RENDERER_SAD_PLUGIN_H_ |
| 7 | |
danakj | ff6a026 | 2018-06-26 19:50:31 | [diff] [blame] | 8 | #include "cc/paint/paint_canvas.h" |
[email protected] | e2adfc4 | 2013-08-08 23:35:17 | [diff] [blame] | 9 | |
| 10 | class SkBitmap; |
| 11 | |
| 12 | namespace gfx { |
| 13 | class Rect; |
| 14 | } |
| 15 | |
| 16 | namespace content { |
| 17 | |
| 18 | // Paints the sad plugin to the given canvas for the given plugin bounds. This |
thestig | 8a8fdfd3 | 2017-05-06 18:46:54 | [diff] [blame] | 19 | // is used by PPAPI out-of-process plugin impls. |
danakj | ff6a026 | 2018-06-26 19:50:31 | [diff] [blame] | 20 | void PaintSadPlugin(cc::PaintCanvas* canvas, |
[email protected] | e2adfc4 | 2013-08-08 23:35:17 | [diff] [blame] | 21 | const gfx::Rect& plugin_rect, |
| 22 | const SkBitmap& sad_plugin_bitmap); |
| 23 | |
| 24 | } // namespace content |
| 25 | |
| 26 | #endif // CONTENT_RENDERER_SAD_PLUGIN_H_ |