OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 RefPtr<SkPicture> picture; | 83 RefPtr<SkPicture> picture; |
84 SkCanvas* canvas = recorder.beginRecording(clip.width, clip.height); | 84 SkCanvas* canvas = recorder.beginRecording(clip.width, clip.height); |
85 canvas->save(); | 85 canvas->save(); |
86 canvas->translate(-clip.x, -clip.y); | 86 canvas->translate(-clip.x, -clip.y); |
87 canvas->clipRect(SkRect::MakeXYWH(clip.x, clip.y, clip.width, clip.height)); | 87 canvas->clipRect(SkRect::MakeXYWH(clip.x, clip.y, clip.width, clip.height)); |
88 paintContents(canvas, clip, canPaintLCDText, contextStatus); | 88 paintContents(canvas, clip, canPaintLCDText, contextStatus); |
89 canvas->restore(); | 89 canvas->restore(); |
90 picture = adoptRef(recorder.endRecording()); | 90 picture = adoptRef(recorder.endRecording()); |
91 | 91 |
92 ASSERT(m_painter->displayItemList()); | 92 ASSERT(m_painter->displayItemList()); |
93 ASSERT(m_painter->displayItemList()->paintList().size() > 0); | |
94 | 93 |
95 const PaintList& paintList = m_painter->displayItemList()->paintList(); | 94 const PaintList& paintList = m_painter->displayItemList()->paintList(); |
96 for (PaintList::const_iterator it = paintList.begin(); it != paintList.end()
; ++it) | 95 for (PaintList::const_iterator it = paintList.begin(); it != paintList.end()
; ++it) |
97 (*it)->appendToWebDisplayItemList(webDisplayItemList); | 96 (*it)->appendToWebDisplayItemList(webDisplayItemList); |
98 } | 97 } |
99 | 98 |
100 } // namespace blink | 99 } // namespace blink |
OLD | NEW |