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

Side by Side Diff: cc/tiles/tile.cc

Issue 2354903003: Don't include the tracing in gpu_memory_buffer.h (Closed)
Patch Set: Fix linux build again Created 4 years, 2 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
OLDNEW
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/tiles/tile.h" 5 #include "cc/tiles/tile.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/numerics/safe_conversions.h" 11 #include "base/numerics/safe_conversions.h"
12 #include "base/trace_event/trace_event.h"
12 #include "base/trace_event/trace_event_argument.h" 13 #include "base/trace_event/trace_event_argument.h"
13 #include "cc/base/math_util.h" 14 #include "cc/base/math_util.h"
14 #include "cc/debug/traced_value.h" 15 #include "cc/debug/traced_value.h"
15 #include "cc/tiles/tile_manager.h" 16 #include "cc/tiles/tile_manager.h"
16 17
17 namespace cc { 18 namespace cc {
18 19
19 Tile::Tile(TileManager* tile_manager, 20 Tile::Tile(TileManager* tile_manager,
20 const CreateInfo& info, 21 const CreateInfo& info,
21 int layer_id, 22 int layer_id,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 draw_info_.resource_->size(), draw_info_.resource_->format()); 74 draw_info_.resource_->size(), draw_info_.resource_->format());
74 } 75 }
75 return 0; 76 return 0;
76 } 77 }
77 78
78 void Tile::Deleter::operator()(Tile* tile) const { 79 void Tile::Deleter::operator()(Tile* tile) const {
79 tile->tile_manager_->Release(tile); 80 tile->tile_manager_->Release(tile);
80 } 81 }
81 82
82 } // namespace cc 83 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/picture_layer_tiling_unittest.cc ('k') | components/display_compositor/yuv_readback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698