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

Side by Side Diff: cc/output/gl_renderer.cc

Issue 683863003: Remove some of the instrumentation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/output/gl_renderer.h" 5 #include "cc/output/gl_renderer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 quad->texture_size, 2002 quad->texture_size,
2003 GL_TEXTURE_2D, 2003 GL_TEXTURE_2D,
2004 GL_TEXTURE_POOL_UNMANAGED_CHROMIUM, 2004 GL_TEXTURE_POOL_UNMANAGED_CHROMIUM,
2005 GL_CLAMP_TO_EDGE, 2005 GL_CLAMP_TO_EDGE,
2006 ResourceProvider::TextureHintImmutable, 2006 ResourceProvider::TextureHintImmutable,
2007 quad->texture_format); 2007 quad->texture_format);
2008 } 2008 }
2009 2009
2010 SkCanvas canvas(on_demand_tile_raster_bitmap_); 2010 SkCanvas canvas(on_demand_tile_raster_bitmap_);
2011 quad->picture_pile->PlaybackToCanvas( 2011 quad->picture_pile->PlaybackToCanvas(
2012 &canvas, quad->content_rect, quad->contents_scale, NULL); 2012 &canvas, quad->content_rect, quad->contents_scale);
2013 2013
2014 uint8_t* bitmap_pixels = NULL; 2014 uint8_t* bitmap_pixels = NULL;
2015 SkBitmap on_demand_tile_raster_bitmap_dest; 2015 SkBitmap on_demand_tile_raster_bitmap_dest;
2016 SkColorType colorType = ResourceFormatToSkColorType(quad->texture_format); 2016 SkColorType colorType = ResourceFormatToSkColorType(quad->texture_format);
2017 if (on_demand_tile_raster_bitmap_.colorType() != colorType) { 2017 if (on_demand_tile_raster_bitmap_.colorType() != colorType) {
2018 on_demand_tile_raster_bitmap_.copyTo(&on_demand_tile_raster_bitmap_dest, 2018 on_demand_tile_raster_bitmap_.copyTo(&on_demand_tile_raster_bitmap_dest,
2019 colorType); 2019 colorType);
2020 // TODO(kaanb): The GL pipeline assumes a 4-byte alignment for the 2020 // TODO(kaanb): The GL pipeline assumes a 4-byte alignment for the
2021 // bitmap data. This check will be removed once crbug.com/293728 is fixed. 2021 // bitmap data. This check will be removed once crbug.com/293728 is fixed.
2022 CHECK_EQ(0u, on_demand_tile_raster_bitmap_dest.rowBytes() % 4); 2022 CHECK_EQ(0u, on_demand_tile_raster_bitmap_dest.rowBytes() % 4);
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
3346 context_support_->ScheduleOverlayPlane( 3346 context_support_->ScheduleOverlayPlane(
3347 overlay.plane_z_order, 3347 overlay.plane_z_order,
3348 overlay.transform, 3348 overlay.transform,
3349 pending_overlay_resources_.back()->texture_id(), 3349 pending_overlay_resources_.back()->texture_id(),
3350 overlay.display_rect, 3350 overlay.display_rect,
3351 overlay.uv_rect); 3351 overlay.uv_rect);
3352 } 3352 }
3353 } 3353 }
3354 3354
3355 } // namespace cc 3355 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698