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

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

Issue 565043002: cc: Remove the opaque rect return-parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentlayerclientopaque: build Created 6 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/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"
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" 13 #include "third_party/khronos/GLES2/gl2.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 Tile::Id Tile::s_next_id_ = 0; 17 Tile::Id Tile::s_next_id_ = 0;
18 18
19 Tile::Tile(TileManager* tile_manager, 19 Tile::Tile(TileManager* tile_manager,
20 PicturePileImpl* picture_pile, 20 PicturePileImpl* picture_pile,
21 const gfx::Size& tile_size, 21 const gfx::Size& tile_size,
22 const gfx::Rect& content_rect, 22 const gfx::Rect& content_rect,
23 const gfx::Rect& opaque_rect,
24 float contents_scale, 23 float contents_scale,
25 int layer_id, 24 int layer_id,
26 int source_frame_number, 25 int source_frame_number,
27 int flags) 26 int flags)
28 : RefCountedManaged<Tile>(tile_manager), 27 : RefCountedManaged<Tile>(tile_manager),
29 tile_manager_(tile_manager), 28 tile_manager_(tile_manager),
30 size_(tile_size), 29 size_(tile_size),
31 content_rect_(content_rect), 30 content_rect_(content_rect),
32 contents_scale_(contents_scale), 31 contents_scale_(contents_scale),
33 opaque_rect_(opaque_rect),
34 layer_id_(layer_id), 32 layer_id_(layer_id),
35 source_frame_number_(source_frame_number), 33 source_frame_number_(source_frame_number),
36 flags_(flags), 34 flags_(flags),
37 is_shared_(false), 35 is_shared_(false),
38 id_(s_next_id_++) { 36 id_(s_next_id_++) {
39 set_picture_pile(picture_pile); 37 set_picture_pile(picture_pile);
40 for (int i = 0; i < NUM_TREES; i++) 38 for (int i = 0; i < NUM_TREES; i++)
41 is_occluded_[i] = false; 39 is_occluded_[i] = false;
42 } 40 }
43 41
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 116
119 bool Tile::HasRasterTask() const { 117 bool Tile::HasRasterTask() const {
120 for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) { 118 for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) {
121 if (managed_state_.tile_versions[mode].raster_task_.get()) 119 if (managed_state_.tile_versions[mode].raster_task_.get())
122 return true; 120 return true;
123 } 121 }
124 return false; 122 return false;
125 } 123 }
126 124
127 } // namespace cc 125 } // 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