Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Side by Side Diff: cc/raster/pixel_buffer_tile_task_worker_pool.cc

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/raster/pixel_buffer_tile_task_worker_pool.h ('k') | cc/raster/raster_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/raster/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/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.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:
23 RasterBufferImpl(ResourceProvider* resource_provider, 23 RasterBufferImpl(ResourceProvider* resource_provider,
24 const Resource* resource) 24 const Resource* resource)
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 void PixelBufferTileTaskWorkerPool::ThrottleStateAsValueInto( 721 void PixelBufferTileTaskWorkerPool::ThrottleStateAsValueInto(
722 base::trace_event::TracedValue* throttle_state) const { 722 base::trace_event::TracedValue* throttle_state) const {
723 throttle_state->SetInteger("bytes_available_for_upload", 723 throttle_state->SetInteger("bytes_available_for_upload",
724 max_bytes_pending_upload_ - bytes_pending_upload_); 724 max_bytes_pending_upload_ - bytes_pending_upload_);
725 throttle_state->SetInteger("bytes_pending_upload", bytes_pending_upload_); 725 throttle_state->SetInteger("bytes_pending_upload", bytes_pending_upload_);
726 throttle_state->SetInteger("scheduled_raster_task_count", 726 throttle_state->SetInteger("scheduled_raster_task_count",
727 scheduled_raster_task_count_); 727 scheduled_raster_task_count_);
728 } 728 }
729 729
730 } // namespace cc 730 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/pixel_buffer_tile_task_worker_pool.h ('k') | cc/raster/raster_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698