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

Unified Diff: cc/tiles/tile_draw_info.cc

Issue 2555743004: Delay activation/draw on GPU tile work completion (Closed)
Patch Set: rebase compile fix Created 3 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
« no previous file with comments | « cc/tiles/tile_draw_info.h ('k') | cc/tiles/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_draw_info.cc
diff --git a/cc/tiles/tile_draw_info.cc b/cc/tiles/tile_draw_info.cc
index 29f2cc833799ebfcb1606126dc4af34111e52909..560345ad3d5a84ea2dbdc7c074988d3604996d0e 100644
--- a/cc/tiles/tile_draw_info.cc
+++ b/cc/tiles/tile_draw_info.cc
@@ -10,11 +10,7 @@
namespace cc {
TileDrawInfo::TileDrawInfo()
- : mode_(RESOURCE_MODE),
- solid_color_(SK_ColorWHITE),
- resource_(nullptr),
- contents_swizzled_(false),
- was_ever_ready_to_draw_(false),
+ : was_ever_ready_to_draw_(false),
was_ever_used_to_draw_(false),
was_a_prepaint_tile_(false) {}
@@ -32,4 +28,10 @@ void TileDrawInfo::AsValueInto(base::trace_event::TracedValue* state) const {
mode_ == SOLID_COLOR_MODE && !SkColorGetA(solid_color_));
}
+Resource* TileDrawInfo::TakeResource() {
+ Resource* resource = resource_;
+ set_resource(nullptr);
+ return resource;
+}
+
} // namespace cc
« no previous file with comments | « cc/tiles/tile_draw_info.h ('k') | cc/tiles/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698