Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 // Paints the content area for the layer, typically dirty rects submitted | 41 // Paints the content area for the layer, typically dirty rects submitted |
| 42 // through WebContentLayer::setNeedsDisplay, submitting drawing commands | 42 // through WebContentLayer::setNeedsDisplay, submitting drawing commands |
| 43 // through the WebCanvas. | 43 // through the WebCanvas. |
| 44 // The canvas is already clipped to the |clip| rect. | 44 // The canvas is already clipped to the |clip| rect. |
| 45 // Optionally, the implementation may set |opaque| to a rect covering pixels that | 45 // Optionally, the implementation may set |opaque| to a rect covering pixels that |
| 46 // the implementation knows are opaque. This information can be used for var ious | 46 // the implementation knows are opaque. This information can be used for var ious |
| 47 // optimizations. | 47 // optimizations. |
| 48 // The |disableContext| enum controls most processing in | 48 // The |disableContext| enum controls most processing in |
| 49 // GraphicsContext to isolate the painting code in performance tests. | 49 // GraphicsContext to isolate the painting code in performance tests. |
| 50 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Text, WebFloatRect& opaque, GraphicsContextStatus = GraphicsContextEnabled) = 0; | 50 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Text, WebFloatRect& opaque, GraphicsContextStatus = GraphicsContextEnabled) = 0; |
| 51 // TODO(danakj): Replace the above method with this one. | |
|
jamesr
2014/09/15 17:38:10
it's blink, so FIXME: with no name
danakj
2014/09/15 17:41:55
Done.
| |
| 52 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Text, GraphicsContextStatus = GraphicsContextEnabled) = 0; | |
| 51 | 53 |
| 52 protected: | 54 protected: |
| 53 virtual ~WebContentLayerClient() { } | 55 virtual ~WebContentLayerClient() { } |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace blink | 58 } // namespace blink |
| 57 | 59 |
| 58 #endif // WebContentLayerClient_h | 60 #endif // WebContentLayerClient_h |
| OLD | NEW |