summaryrefslogtreecommitdiff
path: root/chromium/cc/tiles/tile_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/tiles/tile_manager.h')
-rw-r--r--chromium/cc/tiles/tile_manager.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/chromium/cc/tiles/tile_manager.h b/chromium/cc/tiles/tile_manager.h
index e8b561c1284..3327cf1bf99 100644
--- a/chromium/cc/tiles/tile_manager.h
+++ b/chromium/cc/tiles/tile_manager.h
@@ -17,8 +17,8 @@
#include "base/macros.h"
#include "base/values.h"
#include "cc/base/unique_notifier.h"
-#include "cc/playback/raster_source.h"
#include "cc/raster/raster_buffer_provider.h"
+#include "cc/raster/raster_source.h"
#include "cc/resources/memory_history.h"
#include "cc/resources/resource_pool.h"
#include "cc/tiles/checker_image_tracker.h"
@@ -79,7 +79,7 @@ class CC_EXPORT TileManagerClient {
virtual void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) = 0;
// Requests the color space into which tiles should be rasterized.
- virtual gfx::ColorSpace GetTileColorSpace() const = 0;
+ virtual gfx::ColorSpace GetRasterColorSpace() const = 0;
// Requests that a pending tree be scheduled to invalidate content on the
// pending on active tree. This is currently used when tiles that are
@@ -167,7 +167,7 @@ class CC_EXPORT TileManager : CheckerImageTrackerClient {
draw_info.set_resource(resource_pool_->AcquireResource(
tiles[i]->desired_texture_size(),
raster_buffer_provider_->GetResourceFormat(false),
- client_->GetTileColorSpace()));
+ client_->GetRasterColorSpace()));
draw_info.set_resource_ready_for_draw();
}
}
@@ -229,6 +229,11 @@ class CC_EXPORT TileManager : CheckerImageTrackerClient {
// CheckerImageTrackerClient implementation.
void NeedsInvalidationForCheckerImagedTiles() override;
+ // This method can only be used for debugging information, since it performs a
+ // non trivial amount of work.
+ std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
+ ActivationStateAsValue();
+
protected:
friend class Tile;
// Must be called by tile during destruction.