| 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 "cc/resource_update_controller.h" | 5 #include "cc/resources/resource_update_controller.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "cc/base/thread.h" | 10 #include "cc/base/thread.h" |
| 11 #include "cc/output/context_provider.h" | 11 #include "cc/output/context_provider.h" |
| 12 #include "cc/output/texture_copier.h" | 12 #include "cc/output/texture_copier.h" |
| 13 #include "cc/prioritized_resource.h" | 13 #include "cc/resources/prioritized_resource.h" |
| 14 #include "cc/resource_provider.h" | 14 #include "cc/resources/resource_provider.h" |
| 15 #include "skia/ext/refptr.h" | 15 #include "skia/ext/refptr.h" |
| 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 17 #include "third_party/khronos/GLES2/gl2.h" | 17 #include "third_party/khronos/GLES2/gl2.h" |
| 18 #include "third_party/skia/include/gpu/SkGpuDevice.h" | 18 #include "third_party/skia/include/gpu/SkGpuDevice.h" |
| 19 | 19 |
| 20 using WebKit::WebGraphicsContext3D; | 20 using WebKit::WebGraphicsContext3D; |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // Number of partial updates we allow. | 24 // Number of partial updates we allow. |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 if (!uploads) | 266 if (!uploads) |
| 267 return; | 267 return; |
| 268 | 268 |
| 269 while (queue_->fullUploadSize() && uploads--) | 269 while (queue_->fullUploadSize() && uploads--) |
| 270 UpdateTexture(queue_->takeFirstFullUpload()); | 270 UpdateTexture(queue_->takeFirstFullUpload()); |
| 271 | 271 |
| 272 resource_provider_->FlushUploads(); | 272 resource_provider_->FlushUploads(); |
| 273 } | 273 } |
| 274 | 274 |
| 275 } // namespace cc | 275 } // namespace cc |
| OLD | NEW |