| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 // Called to paint the rectangular region within the WebWidget | 116 // Called to paint the rectangular region within the WebWidget |
| 117 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call | 117 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call |
| 118 // Layout before calling this method. It is okay to call paint | 118 // Layout before calling this method. It is okay to call paint |
| 119 // multiple times once layout has been called, assuming no other | 119 // multiple times once layout has been called, assuming no other |
| 120 // changes are made to the WebWidget (e.g., once events are | 120 // changes are made to the WebWidget (e.g., once events are |
| 121 // processed, it should be assumed that another call to layout is | 121 // processed, it should be assumed that another call to layout is |
| 122 // warranted before painting again). | 122 // warranted before painting again). |
| 123 virtual void paint(WebCanvas*, const WebRect& viewPort, PaintOptions = Readb
ackFromCompositorIfAvailable) { } | 123 virtual void paint(WebCanvas*, const WebRect& viewPort, PaintOptions = Readb
ackFromCompositorIfAvailable) { } |
| 124 | 124 |
| 125 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) { } |
| 126 |
| 125 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback | 127 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback |
| 126 // object alive until it is called. | 128 // object alive until it is called. |
| 127 virtual bool compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { return false; } | 129 virtual bool compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { return false; } |
| 128 | 130 |
| 129 // Returns true if we've started tracking repaint rectangles. | 131 // Returns true if we've started tracking repaint rectangles. |
| 130 virtual bool isTrackingRepaints() const { return false; } | 132 virtual bool isTrackingRepaints() const { return false; } |
| 131 | 133 |
| 132 // Indicates that the compositing surface associated with this WebWidget is | 134 // Indicates that the compositing surface associated with this WebWidget is |
| 133 // ready to use. | 135 // ready to use. |
| 134 virtual void setCompositorSurfaceReady() { } | 136 virtual void setCompositorSurfaceReady() { } |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // content. | 261 // content. |
| 260 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 262 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
| 261 | 263 |
| 262 protected: | 264 protected: |
| 263 ~WebWidget() { } | 265 ~WebWidget() { } |
| 264 }; | 266 }; |
| 265 | 267 |
| 266 } // namespace blink | 268 } // namespace blink |
| 267 | 269 |
| 268 #endif | 270 #endif |
| OLD | NEW |