| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 static const char* paintPhaseName(blink::PaintPhase phase) | 50 static const char* paintPhaseName(blink::PaintPhase phase) |
| 51 { | 51 { |
| 52 switch (phase) { | 52 switch (phase) { |
| 53 case blink::PaintPhaseBlockBackground: | 53 case blink::PaintPhaseBlockBackground: |
| 54 return "BlockBackground"; | 54 return "BlockBackground"; |
| 55 case blink::PaintPhaseChildBlockBackground: | 55 case blink::PaintPhaseChildBlockBackground: |
| 56 return "ChildBlockBackground"; | 56 return "ChildBlockBackground"; |
| 57 case blink::PaintPhaseChildBlockBackgrounds: | 57 case blink::PaintPhaseChildBlockBackgrounds: |
| 58 return "ChildBlockBackgrounds"; | 58 return "ChildBlockBackgrounds"; |
| 59 case blink::PaintPhaseFloat: | |
| 60 return "Float"; | |
| 61 case blink::PaintPhaseForeground: | 59 case blink::PaintPhaseForeground: |
| 62 return "Foreground"; | 60 return "Foreground"; |
| 63 case blink::PaintPhaseOutline: | 61 case blink::PaintPhaseOutline: |
| 64 return "Outline"; | 62 return "Outline"; |
| 65 case blink::PaintPhaseChildOutlines: | 63 case blink::PaintPhaseChildOutlines: |
| 66 return "ChildOutlines"; | 64 return "ChildOutlines"; |
| 67 case blink::PaintPhaseSelfOutline: | 65 case blink::PaintPhaseSelfOutline: |
| 68 return "SelfOutline"; | 66 return "SelfOutline"; |
| 69 case blink::PaintPhaseSelection: | 67 case blink::PaintPhaseSelection: |
| 70 return "Selection"; | 68 return "Selection"; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 m_context->beginAnnotation(annotations); | 132 m_context->beginAnnotation(annotations); |
| 135 } | 133 } |
| 136 | 134 |
| 137 void GraphicsContextAnnotator::finishAnnotation() | 135 void GraphicsContextAnnotator::finishAnnotation() |
| 138 { | 136 { |
| 139 ASSERT(m_context); | 137 ASSERT(m_context); |
| 140 m_context->endAnnotation(); | 138 m_context->endAnnotation(); |
| 141 } | 139 } |
| 142 | 140 |
| 143 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |