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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 793573006: Refactoring for merging ManagedTileState into Tile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a nit Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index ad3060076e55220510d0b1f7e75e0f634496b8d4..5a192a04ee4bda1ed6c7bb1ce5a2eb2f3e42e34b 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -255,11 +255,11 @@ void PictureLayerImpl::AppendQuads(RenderPass* render_pass,
SkColor color;
float width;
if (*iter && iter->IsReadyToDraw()) {
- ManagedTileState::DrawInfo::Mode mode = iter->draw_info().mode();
- if (mode == ManagedTileState::DrawInfo::SOLID_COLOR_MODE) {
+ TileDrawInfo::Mode mode = iter->draw_info().mode();
+ if (mode == TileDrawInfo::SOLID_COLOR_MODE) {
color = DebugColors::SolidColorTileBorderColor();
width = DebugColors::SolidColorTileBorderWidth(layer_tree_impl());
- } else if (mode == ManagedTileState::DrawInfo::PICTURE_PILE_MODE) {
+ } else if (mode == TileDrawInfo::PICTURE_PILE_MODE) {
color = DebugColors::PictureTileBorderColor();
width = DebugColors::PictureTileBorderWidth(layer_tree_impl());
} else if (iter.resolution() == HIGH_RESOLUTION) {
@@ -323,9 +323,9 @@ void PictureLayerImpl::AppendQuads(RenderPass* render_pass,
bool has_draw_quad = false;
if (*iter && iter->IsReadyToDraw()) {
- const ManagedTileState::DrawInfo& draw_info = iter->draw_info();
+ const TileDrawInfo& draw_info = iter->draw_info();
switch (draw_info.mode()) {
- case ManagedTileState::DrawInfo::RESOURCE_MODE: {
+ case TileDrawInfo::RESOURCE_MODE: {
gfx::RectF texture_rect = iter.texture_rect();
// The raster_contents_scale_ is the best scale that the layer is
@@ -354,7 +354,7 @@ void PictureLayerImpl::AppendQuads(RenderPass* render_pass,
has_draw_quad = true;
break;
}
- case ManagedTileState::DrawInfo::PICTURE_PILE_MODE: {
+ case TileDrawInfo::PICTURE_PILE_MODE: {
if (!layer_tree_impl()
->GetRendererCapabilities()
.allow_rasterize_on_demand) {
@@ -377,7 +377,7 @@ void PictureLayerImpl::AppendQuads(RenderPass* render_pass,
has_draw_quad = true;
break;
}
- case ManagedTileState::DrawInfo::SOLID_COLOR_MODE: {
+ case TileDrawInfo::SOLID_COLOR_MODE: {
SolidColorDrawQuad* quad =
render_pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
quad->SetNew(shared_quad_state,
@@ -790,9 +790,9 @@ void PictureLayerImpl::GetContentsResourceId(
<< "iter rect " << iter.geometry_rect().ToString() << " content rect "
<< content_rect.ToString();
- const ManagedTileState::DrawInfo& draw_info = iter->draw_info();
+ const TileDrawInfo& draw_info = iter->draw_info();
if (!draw_info.IsReadyToDraw() ||
- draw_info.mode() != ManagedTileState::DrawInfo::RESOURCE_MODE) {
+ draw_info.mode() != TileDrawInfo::RESOURCE_MODE) {
*resource_id = 0;
return;
}
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698