| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "cc/unthrottled_texture_uploader.h" | 7 #include "cc/unthrottled_texture_uploader.h" |
| 8 | 8 |
| 9 #include "CCPrioritizedTexture.h" | 9 #include "CCPrioritizedTexture.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 upload.bitmap->lockPixels(); | 30 upload.bitmap->lockPixels(); |
| 31 upload.texture->upload( | 31 upload.texture->upload( |
| 32 resourceProvider, | 32 resourceProvider, |
| 33 static_cast<const uint8_t*>(upload.bitmap->getPixels()), | 33 static_cast<const uint8_t*>(upload.bitmap->getPixels()), |
| 34 upload.geometry.contentRect, | 34 upload.geometry.contentRect, |
| 35 upload.geometry.sourceRect, | 35 upload.geometry.sourceRect, |
| 36 upload.geometry.destOffset); | 36 upload.geometry.destOffset); |
| 37 upload.bitmap->unlockPixels(); | 37 upload.bitmap->unlockPixels(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 DCHECK(!upload.picture); | 40 ASSERT(!upload.picture); |
| 41 } | 41 } |
| 42 | 42 |
| 43 } | 43 } |
| OLD | NEW |