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

Unified Diff: cc/tiles/tile.h

Issue 2726343004: cc: Optimize decode scheduling for checker-images. (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « cc/tiles/prioritized_tile.cc ('k') | cc/tiles/tile_draw_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile.h
diff --git a/cc/tiles/tile.h b/cc/tiles/tile.h
index 435d5f0552e2e3c289f1f1cc227d80443f5a0cff..66dfadae0a63b23b751eed1ee9d0ab0f11cea9b1 100644
--- a/cc/tiles/tile.h
+++ b/cc/tiles/tile.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "cc/paint/draw_image.h"
#include "cc/raster/tile_task.h"
#include "cc/tiles/tile_draw_info.h"
#include "ui/gfx/geometry/axis_transform2d.h"
@@ -117,6 +118,15 @@ class CC_EXPORT Tile {
return is_solid_color_analysis_performed_;
}
+ bool set_raster_task_scheduled_with_checker_images(bool has_checker_images) {
+ bool previous_value = raster_task_scheduled_with_checker_images_;
+ raster_task_scheduled_with_checker_images_ = has_checker_images;
+ return previous_value;
+ }
+ bool raster_task_scheduled_with_checker_images() const {
+ return raster_task_scheduled_with_checker_images_;
+ }
+
const PictureLayerTiling* tiling() const { return tiling_; }
void set_tiling(const PictureLayerTiling* tiling) { tiling_ = tiling; }
@@ -158,6 +168,10 @@ class CC_EXPORT Tile {
Id invalidated_id_;
unsigned scheduled_priority_;
+
+ // Set to true if there is a raster task scheduled for this tile that will
+ // rasterize a resource with checker images.
+ bool raster_task_scheduled_with_checker_images_ = false;
scoped_refptr<TileTask> raster_task_;
DISALLOW_COPY_AND_ASSIGN(Tile);
« no previous file with comments | « cc/tiles/prioritized_tile.cc ('k') | cc/tiles/tile_draw_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698