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

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

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/tile.h ('k') | cc/resources/tile_manager.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 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/debug/trace_event_argument.h" 9 #include "base/debug/trace_event_argument.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 18 matching lines...) Expand all
29 size_(tile_size), 29 size_(tile_size),
30 content_rect_(content_rect), 30 content_rect_(content_rect),
31 contents_scale_(contents_scale), 31 contents_scale_(contents_scale),
32 layer_id_(layer_id), 32 layer_id_(layer_id),
33 source_frame_number_(source_frame_number), 33 source_frame_number_(source_frame_number),
34 flags_(flags), 34 flags_(flags),
35 is_shared_(false), 35 is_shared_(false),
36 tiling_i_index_(-1), 36 tiling_i_index_(-1),
37 tiling_j_index_(-1), 37 tiling_j_index_(-1),
38 required_for_activation_(false), 38 required_for_activation_(false),
39 required_for_draw_(false),
39 id_(s_next_id_++) { 40 id_(s_next_id_++) {
40 set_raster_source(raster_source); 41 set_raster_source(raster_source);
41 for (int i = 0; i < NUM_TREES; i++) 42 for (int i = 0; i < NUM_TREES; i++)
42 is_occluded_[i] = false; 43 is_occluded_[i] = false;
43 } 44 }
44 45
45 Tile::~Tile() { 46 Tile::~Tile() {
46 TRACE_EVENT_OBJECT_DELETED_WITH_ID( 47 TRACE_EVENT_OBJECT_DELETED_WITH_ID(
47 TRACE_DISABLED_BY_DEFAULT("cc.debug"), 48 TRACE_DISABLED_BY_DEFAULT("cc.debug"),
48 "cc::Tile", this); 49 "cc::Tile", this);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 if (managed_state_.draw_info.resource_) 82 if (managed_state_.draw_info.resource_)
82 return managed_state_.draw_info.resource_->bytes(); 83 return managed_state_.draw_info.resource_->bytes();
83 return 0; 84 return 0;
84 } 85 }
85 86
86 bool Tile::HasRasterTask() const { 87 bool Tile::HasRasterTask() const {
87 return !!managed_state_.raster_task.get(); 88 return !!managed_state_.raster_task.get();
88 } 89 }
89 90
90 } // namespace cc 91 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698