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

Unified Diff: cc/debug/picture_record_benchmark.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: cc/debug/picture_record_benchmark.cc
diff --git a/cc/debug/picture_record_benchmark.cc b/cc/debug/picture_record_benchmark.cc
index ab50c7c3da1c09ac10dc1f4358cc642a2c2d6724..cc01448f5481892410fa41f84ea72f304df92267 100644
--- a/cc/debug/picture_record_benchmark.cc
+++ b/cc/debug/picture_record_benchmark.cc
@@ -13,7 +13,6 @@
#include "cc/resources/picture.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_common.h"
-#include "third_party/skia/include/core/SkBBHFactory.h"
#include "ui/gfx/geometry/rect.h"
namespace cc {
@@ -22,7 +21,6 @@ namespace {
const int kPositionIncrement = 100;
const int kTileGridSize = 512;
-const int kTileGridBorder = 1;
} // namespace
@@ -93,11 +91,7 @@ void PictureRecordBenchmark::RunOnLayer(PictureLayer* layer) {
ContentLayerClient* painter = layer->client();
gfx::Size content_bounds = layer->content_bounds();
- SkTileGridFactory::TileGridInfo tile_grid_info;
- tile_grid_info.fTileInterval.set(kTileGridSize - 2 * kTileGridBorder,
- kTileGridSize - 2 * kTileGridBorder);
- tile_grid_info.fMargin.set(kTileGridBorder, kTileGridBorder);
- tile_grid_info.fOffset.set(-kTileGridBorder, -kTileGridBorder);
+ gfx::Size tile_grid_size(kTileGridSize, kTileGridSize);
for (size_t i = 0; i < dimensions_.size(); ++i) {
std::pair<int, int> dimensions = dimensions_[i];
@@ -113,7 +107,7 @@ void PictureRecordBenchmark::RunOnLayer(PictureLayer* layer) {
base::TimeTicks start = base::TimeTicks::HighResNow();
scoped_refptr<Picture> picture = Picture::Create(
- rect, painter, tile_grid_info, false, Picture::RECORD_NORMALLY);
+ rect, painter, tile_grid_size, false, Picture::RECORD_NORMALLY);
base::TimeTicks end = base::TimeTicks::HighResNow();
base::TimeDelta duration = end - start;

Powered by Google App Engine
This is Rietveld 408576698