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

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

Issue 374653003: Track occlusion per tree on Tile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« cc/resources/tile.h ('K') | « cc/resources/tile.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 "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/debug/traced_value.h" 10 #include "cc/debug/traced_value.h"
(...skipping 12 matching lines...) Expand all
23 float contents_scale, 23 float contents_scale,
24 int layer_id, 24 int layer_id,
25 int source_frame_number, 25 int source_frame_number,
26 int flags) 26 int flags)
27 : RefCountedManaged<Tile>(tile_manager), 27 : RefCountedManaged<Tile>(tile_manager),
28 tile_manager_(tile_manager), 28 tile_manager_(tile_manager),
29 tile_size_(tile_size), 29 tile_size_(tile_size),
30 content_rect_(content_rect), 30 content_rect_(content_rect),
31 contents_scale_(contents_scale), 31 contents_scale_(contents_scale),
32 opaque_rect_(opaque_rect), 32 opaque_rect_(opaque_rect),
33 is_occluded_(false), 33 is_occluded_on_active_tree_(false),
34 is_occluded_on_pending_tree_(false),
34 layer_id_(layer_id), 35 layer_id_(layer_id),
35 source_frame_number_(source_frame_number), 36 source_frame_number_(source_frame_number),
36 flags_(flags), 37 flags_(flags),
37 id_(s_next_id_++) { 38 id_(s_next_id_++) {
38 set_picture_pile(picture_pile); 39 set_picture_pile(picture_pile);
39 } 40 }
40 41
41 Tile::~Tile() { 42 Tile::~Tile() {
42 TRACE_EVENT_OBJECT_DELETED_WITH_ID( 43 TRACE_EVENT_OBJECT_DELETED_WITH_ID(
43 TRACE_DISABLED_BY_DEFAULT("cc.debug"), 44 TRACE_DISABLED_BY_DEFAULT("cc.debug"),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 RasterMode Tile::DetermineRasterModeForResolution( 95 RasterMode Tile::DetermineRasterModeForResolution(
95 TileResolution resolution) const { 96 TileResolution resolution) const {
96 RasterMode current_mode = managed_state_.raster_mode; 97 RasterMode current_mode = managed_state_.raster_mode;
97 RasterMode raster_mode = resolution == LOW_RESOLUTION 98 RasterMode raster_mode = resolution == LOW_RESOLUTION
98 ? LOW_QUALITY_RASTER_MODE 99 ? LOW_QUALITY_RASTER_MODE
99 : HIGH_QUALITY_RASTER_MODE; 100 : HIGH_QUALITY_RASTER_MODE;
100 return std::min(raster_mode, current_mode); 101 return std::min(raster_mode, current_mode);
101 } 102 }
102 103
103 } // namespace cc 104 } // namespace cc
OLDNEW
« cc/resources/tile.h ('K') | « cc/resources/tile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698