OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/resources/one_copy_tile_task_worker_pool.h" | 5 #include "cc/raster/one_copy_tile_task_worker_pool.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
12 #include "base/trace_event/trace_event_argument.h" | 12 #include "base/trace_event/trace_event_argument.h" |
13 #include "cc/debug/traced_value.h" | 13 #include "cc/debug/traced_value.h" |
14 #include "cc/resources/raster_buffer.h" | 14 #include "cc/raster/raster_buffer.h" |
15 #include "cc/resources/resource_pool.h" | 15 #include "cc/resources/resource_pool.h" |
16 #include "cc/resources/scoped_resource.h" | 16 #include "cc/resources/scoped_resource.h" |
17 #include "gpu/command_buffer/client/gles2_interface.h" | 17 #include "gpu/command_buffer/client/gles2_interface.h" |
18 #include "ui/gfx/gpu_memory_buffer.h" | 18 #include "ui/gfx/gpu_memory_buffer.h" |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 namespace { | 21 namespace { |
22 | 22 |
23 class RasterBufferImpl : public RasterBuffer { | 23 class RasterBufferImpl : public RasterBuffer { |
24 public: | 24 public: |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 resource_pool_->total_memory_usage_bytes()); | 502 resource_pool_->total_memory_usage_bytes()); |
503 staging_state->SetInteger("pending_copy_count", | 503 staging_state->SetInteger("pending_copy_count", |
504 resource_pool_->total_resource_count() - | 504 resource_pool_->total_resource_count() - |
505 resource_pool_->acquired_resource_count()); | 505 resource_pool_->acquired_resource_count()); |
506 staging_state->SetInteger("bytes_pending_copy", | 506 staging_state->SetInteger("bytes_pending_copy", |
507 resource_pool_->total_memory_usage_bytes() - | 507 resource_pool_->total_memory_usage_bytes() - |
508 resource_pool_->acquired_memory_usage_bytes()); | 508 resource_pool_->acquired_memory_usage_bytes()); |
509 } | 509 } |
510 | 510 |
511 } // namespace cc | 511 } // namespace cc |
OLD | NEW |