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/resources/tile.cc

Issue 994833002: Remove unused references to included header files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/resources/resource.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/resources/tile.h" 5 #include "cc/resources/tile.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/trace_event/trace_event_argument.h" 9 #include "base/trace_event/trace_event_argument.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
11 #include "cc/debug/traced_value.h" 11 #include "cc/debug/traced_value.h"
12 #include "cc/resources/tile_manager.h" 12 #include "cc/resources/tile_manager.h"
13 #include "third_party/khronos/GLES2/gl2.h"
14 13
15 namespace cc { 14 namespace cc {
16 15
17 Tile::Id Tile::s_next_id_ = 0; 16 Tile::Id Tile::s_next_id_ = 0;
18 17
19 Tile::Tile(TileManager* tile_manager, 18 Tile::Tile(TileManager* tile_manager,
20 RasterSource* raster_source, 19 RasterSource* raster_source,
21 const gfx::Size& desired_texture_size, 20 const gfx::Size& desired_texture_size,
22 const gfx::Rect& content_rect, 21 const gfx::Rect& content_rect,
23 float contents_scale, 22 float contents_scale,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 res->SetInteger("gpu_memory_usage", GPUMemoryUsageInBytes()); 82 res->SetInteger("gpu_memory_usage", GPUMemoryUsageInBytes());
84 } 83 }
85 84
86 size_t Tile::GPUMemoryUsageInBytes() const { 85 size_t Tile::GPUMemoryUsageInBytes() const {
87 if (draw_info_.resource_) 86 if (draw_info_.resource_)
88 return draw_info_.resource_->bytes(); 87 return draw_info_.resource_->bytes();
89 return 0; 88 return 0;
90 } 89 }
91 90
92 } // namespace cc 91 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698