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

Side by Side Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 364063005: Histogram to track missing and incomplete tiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 had_incomplete_tile, 1871 had_incomplete_tile,
1872 animating, 1872 animating,
1873 resource_provider)); 1873 resource_provider));
1874 } 1874 }
1875 1875
1876 virtual void AppendQuads(RenderPass* render_pass, 1876 virtual void AppendQuads(RenderPass* render_pass,
1877 const OcclusionTracker<LayerImpl>& occlusion_tracker, 1877 const OcclusionTracker<LayerImpl>& occlusion_tracker,
1878 AppendQuadsData* append_quads_data) OVERRIDE { 1878 AppendQuadsData* append_quads_data) OVERRIDE {
1879 LayerImpl::AppendQuads(render_pass, occlusion_tracker, append_quads_data); 1879 LayerImpl::AppendQuads(render_pass, occlusion_tracker, append_quads_data);
1880 if (had_incomplete_tile_) 1880 if (had_incomplete_tile_)
1881 append_quads_data->had_incomplete_tile = true; 1881 append_quads_data->num_incomplete_tiles++;
1882 if (tile_missing_) 1882 if (tile_missing_)
1883 append_quads_data->num_missing_tiles++; 1883 append_quads_data->num_missing_tiles++;
1884 } 1884 }
1885 1885
1886 private: 1886 private:
1887 MissingTextureAnimatingLayer(LayerTreeImpl* tree_impl, 1887 MissingTextureAnimatingLayer(LayerTreeImpl* tree_impl,
1888 int id, 1888 int id,
1889 bool tile_missing, 1889 bool tile_missing,
1890 bool had_incomplete_tile, 1890 bool had_incomplete_tile,
1891 bool animating, 1891 bool animating,
(...skipping 4758 matching lines...) Expand 10 before | Expand all | Expand 10 after
6650 external_viewport, 6650 external_viewport,
6651 external_clip, 6651 external_clip,
6652 valid_for_tile_management); 6652 valid_for_tile_management);
6653 DrawFrame(); 6653 DrawFrame();
6654 EXPECT_TRANSFORMATION_MATRIX_EQ( 6654 EXPECT_TRANSFORMATION_MATRIX_EQ(
6655 external_transform, layer->draw_properties().target_space_transform); 6655 external_transform, layer->draw_properties().target_space_transform);
6656 } 6656 }
6657 6657
6658 } // namespace 6658 } // namespace
6659 } // namespace cc 6659 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698