| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 , m_displayItemList(displayItemList) | 94 , m_displayItemList(displayItemList) |
| 95 , m_paintStateStack() | 95 , m_paintStateStack() |
| 96 , m_paintStateIndex(0) | 96 , m_paintStateIndex(0) |
| 97 #if ENABLE(ASSERT) | 97 #if ENABLE(ASSERT) |
| 98 , m_layerCount(0) | 98 , m_layerCount(0) |
| 99 , m_disableDestructionChecks(false) | 99 , m_disableDestructionChecks(false) |
| 100 , m_inDrawingRecorder(false) | 100 , m_inDrawingRecorder(false) |
| 101 #endif | 101 #endif |
| 102 , m_disabledState(disableContextOrPainting) | 102 , m_disabledState(disableContextOrPainting) |
| 103 , m_deviceScaleFactor(1.0f) | 103 , m_deviceScaleFactor(1.0f) |
| 104 , m_accelerated(false) | |
| 105 , m_printing(false) | 104 , m_printing(false) |
| 106 , m_hasMetaData(!!metaData) | 105 , m_hasMetaData(!!metaData) |
| 107 { | 106 { |
| 108 if (metaData) | 107 if (metaData) |
| 109 m_metaData = *metaData; | 108 m_metaData = *metaData; |
| 110 | 109 |
| 111 // FIXME: Do some tests to determine how many states are typically used, and
allocate | 110 // FIXME: Do some tests to determine how many states are typically used, and
allocate |
| 112 // several here. | 111 // several here. |
| 113 m_paintStateStack.append(GraphicsContextState::create()); | 112 m_paintStateStack.append(GraphicsContextState::create()); |
| 114 m_paintState = m_paintStateStack.last().get(); | 113 m_paintState = m_paintStateStack.last().get(); |
| (...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1570 static const SkPMColor colors[] = { | 1569 static const SkPMColor colors[] = { |
| 1571 SkPreMultiplyARGB(0x60, 0xFF, 0x00, 0x00), // More transparent red | 1570 SkPreMultiplyARGB(0x60, 0xFF, 0x00, 0x00), // More transparent red |
| 1572 SkPreMultiplyARGB(0x60, 0xC0, 0xC0, 0xC0) // More transparent gray | 1571 SkPreMultiplyARGB(0x60, 0xC0, 0xC0, 0xC0) // More transparent gray |
| 1573 }; | 1572 }; |
| 1574 | 1573 |
| 1575 return colors[index]; | 1574 return colors[index]; |
| 1576 } | 1575 } |
| 1577 #endif | 1576 #endif |
| 1578 | 1577 |
| 1579 } // namespace blink | 1578 } // namespace blink |
| OLD | NEW |