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

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

Issue 2354903003: Don't include the tracing in gpu_memory_buffer.h (Closed)
Patch Set: Fix linux build again Created 4 years, 3 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/staging_buffer_pool.h ('k') | cc/resources/resource_provider.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/raster/staging_buffer_pool.h" 5 #include "cc/raster/staging_buffer_pool.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/memory_coordinator_client_registry.h" 9 #include "base/memory/memory_coordinator_client_registry.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
13 #include "base/trace_event/memory_dump_manager.h" 13 #include "base/trace_event/memory_dump_manager.h"
14 #include "cc/base/container_util.h" 14 #include "cc/base/container_util.h"
15 #include "cc/debug/traced_value.h" 15 #include "cc/debug/traced_value.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_tracing.h"
18 19
19 namespace cc { 20 namespace cc {
20 namespace { 21 namespace {
21 22
22 // Delay between checking for query result to be available. 23 // Delay between checking for query result to be available.
23 const int kCheckForQueryResultAvailableTickRateMs = 1; 24 const int kCheckForQueryResultAvailableTickRateMs = 1;
24 25
25 // Number of attempts to allow before we perform a check that will wait for 26 // Number of attempts to allow before we perform a check that will wait for
26 // query to complete. 27 // query to complete.
27 const int kMaxCheckForQueryResultAvailableAttempts = 256; 28 const int kMaxCheckForQueryResultAvailableAttempts = 256;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // TODO(tasak): free this component's caches as much as possible before 429 // TODO(tasak): free this component's caches as much as possible before
429 // suspending renderer. 430 // suspending renderer.
430 break; 431 break;
431 case base::MemoryState::UNKNOWN: 432 case base::MemoryState::UNKNOWN:
432 // NOT_REACHED. 433 // NOT_REACHED.
433 break; 434 break;
434 } 435 }
435 } 436 }
436 437
437 } // namespace cc 438 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/staging_buffer_pool.h ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698