OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/pixel_buffer_tile_task_worker_pool.h" | 5 #include "cc/resources/pixel_buffer_tile_task_worker_pool.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/containers/stack_container.h" | 9 #include "base/containers/stack_container.h" |
10 #include "base/debug/trace_event.h" | |
11 #include "base/debug/trace_event_argument.h" | |
12 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/trace_event/trace_event.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/resources/raster_buffer.h" |
15 #include "cc/resources/resource.h" | 15 #include "cc/resources/resource.h" |
16 #include "gpu/command_buffer/client/gles2_interface.h" | 16 #include "gpu/command_buffer/client/gles2_interface.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 namespace { | 19 namespace { |
20 | 20 |
21 class RasterBufferImpl : public RasterBuffer { | 21 class RasterBufferImpl : public RasterBuffer { |
22 public: | 22 public: |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 void PixelBufferTileTaskWorkerPool::ThrottleStateAsValueInto( | 717 void PixelBufferTileTaskWorkerPool::ThrottleStateAsValueInto( |
718 base::debug::TracedValue* throttle_state) const { | 718 base::debug::TracedValue* throttle_state) const { |
719 throttle_state->SetInteger("bytes_available_for_upload", | 719 throttle_state->SetInteger("bytes_available_for_upload", |
720 max_bytes_pending_upload_ - bytes_pending_upload_); | 720 max_bytes_pending_upload_ - bytes_pending_upload_); |
721 throttle_state->SetInteger("bytes_pending_upload", bytes_pending_upload_); | 721 throttle_state->SetInteger("bytes_pending_upload", bytes_pending_upload_); |
722 throttle_state->SetInteger("scheduled_raster_task_count", | 722 throttle_state->SetInteger("scheduled_raster_task_count", |
723 scheduled_raster_task_count_); | 723 scheduled_raster_task_count_); |
724 } | 724 } |
725 | 725 |
726 } // namespace cc | 726 } // namespace cc |
OLD | NEW |