| 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" | |
| 6 | |
| 7 #include "cc/resource_update_controller.h" | 5 #include "cc/resource_update_controller.h" |
| 8 | 6 |
| 9 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 10 #include "cc/prioritized_resource.h" | 8 #include "cc/prioritized_resource.h" |
| 11 #include "cc/resource_provider.h" | 9 #include "cc/resource_provider.h" |
| 12 #include "cc/texture_copier.h" | 10 #include "cc/texture_copier.h" |
| 13 #include "cc/thread.h" | 11 #include "cc/thread.h" |
| 14 #include "third_party/khronos/GLES2/gl2.h" | 12 #include "third_party/khronos/GLES2/gl2.h" |
| 15 #include "third_party/skia/include/gpu/SkGpuDevice.h" | 13 #include "third_party/skia/include/gpu/SkGpuDevice.h" |
| 16 #include <limits> | 14 #include <limits> |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 if (!uploads) | 286 if (!uploads) |
| 289 return; | 287 return; |
| 290 | 288 |
| 291 while (m_queue->fullUploadSize() && uploads--) | 289 while (m_queue->fullUploadSize() && uploads--) |
| 292 updateTexture(m_queue->takeFirstFullUpload()); | 290 updateTexture(m_queue->takeFirstFullUpload()); |
| 293 | 291 |
| 294 m_resourceProvider->flushUploads(); | 292 m_resourceProvider->flushUploads(); |
| 295 } | 293 } |
| 296 | 294 |
| 297 } // namespace cc | 295 } // namespace cc |
| OLD | NEW |