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

Unified Diff: cc/test/fake_picture_layer_tiling_client.h

Issue 1381163002: Add a flag to disable partial raster in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/test/fake_picture_layer_tiling_client.h
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h
index bce66489aa3b8373d2925cff388ea7a213afc032..87ade6e9dc1a682428902c83f1be2b122f504c9f 100644
--- a/cc/test/fake_picture_layer_tiling_client.h
+++ b/cc/test/fake_picture_layer_tiling_client.h
@@ -32,6 +32,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
const PictureLayerTiling* GetPendingOrActiveTwinTiling(
const PictureLayerTiling* tiling) const override;
bool RequiresHighResToDraw() const override;
+ bool EnablePartialRaster() const override;
void set_twin_tiling_set(PictureLayerTilingSet* set) {
twin_set_ = set;
@@ -46,6 +47,10 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
void set_has_valid_tile_priorities(bool has_valid_tile_priorities) {
has_valid_tile_priorities_ = has_valid_tile_priorities;
}
+ void set_enable_partial_Raster(bool enable_partial_raster) {
vmpstr 2015/10/06 18:35:48 nit: capitalization typo
ericrk 2015/10/07 17:59:07 Done.
+ enable_partial_raster_ = enable_partial_raster;
+ }
+
RasterSource* raster_source() { return raster_source_.get(); }
TileManager* tile_manager() const {
@@ -63,6 +68,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
gfx::Rect text_rect_;
Region invalidation_;
bool has_valid_tile_priorities_;
+ bool enable_partial_raster_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698