Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame^] | 1 | // Copyright 2011 The Chromium Authors |
[email protected] | e2adfc4 | 2013-08-08 23:35:17 | [diff] [blame] | 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 | |
Khushal | 01e8678 | 2018-06-26 21:10:53 | [diff] [blame] | 10 | namespace cc { |
11 | class PaintImage; | ||||
12 | } | ||||
[email protected] | e2adfc4 | 2013-08-08 23:35:17 | [diff] [blame] | 13 | |
14 | namespace gfx { | ||||
15 | class Rect; | ||||
16 | } | ||||
17 | |||||
18 | namespace content { | ||||
19 | |||||
20 | // Paints the sad plugin to the given canvas for the given plugin bounds. This | ||||
thestig | 8a8fdfd3 | 2017-05-06 18:46:54 | [diff] [blame] | 21 | // is used by PPAPI out-of-process plugin impls. |
danakj | ff6a026 | 2018-06-26 19:50:31 | [diff] [blame] | 22 | void PaintSadPlugin(cc::PaintCanvas* canvas, |
[email protected] | e2adfc4 | 2013-08-08 23:35:17 | [diff] [blame] | 23 | const gfx::Rect& plugin_rect, |
Khushal | 01e8678 | 2018-06-26 21:10:53 | [diff] [blame] | 24 | const cc::PaintImage& sad_plugin_image); |
[email protected] | e2adfc4 | 2013-08-08 23:35:17 | [diff] [blame] | 25 | |
26 | } // namespace content | ||||
27 | |||||
28 | #endif // CONTENT_RENDERER_SAD_PLUGIN_H_ |