| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 enum { | 35 enum { |
| 36 DefaultMaxBytesAllocated = 64*1024*1024, | 36 DefaultMaxBytesAllocated = 64*1024*1024, |
| 37 DefaultTargetBytesAllocated = 16*1024*1024, | 37 DefaultTargetBytesAllocated = 16*1024*1024, |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // unnamed namespace | 40 } // unnamed namespace |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace blink { |
| 43 | 43 |
| 44 Canvas2DLayerManager::Canvas2DLayerManager() | 44 Canvas2DLayerManager::Canvas2DLayerManager() |
| 45 : m_bytesAllocated(0) | 45 : m_bytesAllocated(0) |
| 46 , m_maxBytesAllocated(DefaultMaxBytesAllocated) | 46 , m_maxBytesAllocated(DefaultMaxBytesAllocated) |
| 47 , m_targetBytesAllocated(DefaultTargetBytesAllocated) | 47 , m_targetBytesAllocated(DefaultTargetBytesAllocated) |
| 48 , m_taskObserverActive(false) | 48 , m_taskObserverActive(false) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 Canvas2DLayerManager::~Canvas2DLayerManager() | 52 Canvas2DLayerManager::~Canvas2DLayerManager() |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 } | 149 } |
| 150 } | 150 } |
| 151 | 151 |
| 152 bool Canvas2DLayerManager::isInList(Canvas2DLayerBridge* layer) const | 152 bool Canvas2DLayerManager::isInList(Canvas2DLayerBridge* layer) const |
| 153 { | 153 { |
| 154 return layer->prev() || m_layerList.head() == layer; | 154 return layer->prev() || m_layerList.head() == layer; |
| 155 } | 155 } |
| 156 | 156 |
| 157 } | 157 } |
| 158 | 158 |
| OLD | NEW |