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

Unified Diff: cc/tile_manager.h

Issue 11348384: cc: Use asynchronous set pixels API for impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ManagedTileState::resource_id. Created 8 years 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/tile.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_manager.h
diff --git a/cc/tile_manager.h b/cc/tile_manager.h
index 43c9064125097f9a0c5348d9b6ecaba89d4dbbf6..31826aedce7839a77862f3614bbe3766b03df03d 100644
--- a/cc/tile_manager.h
+++ b/cc/tile_manager.h
@@ -5,6 +5,7 @@
#ifndef CC_TILE_MANAGER_H_
#define CC_TILE_MANAGER_H_
+#include <queue>
#include <vector>
#include "base/memory/scoped_ptr.h"
@@ -23,7 +24,7 @@ struct RenderingStats;
class CC_EXPORT TileManagerClient {
public:
virtual void ScheduleManageTiles() = 0;
- virtual void ScheduleRedraw() = 0;
+ virtual void ScheduleCheckForCompletedSetPixels() = 0;
protected:
virtual ~TileManagerClient() {}
@@ -74,6 +75,7 @@ class CC_EXPORT TileManager {
void SetGlobalState(const GlobalStateThatImpactsTilePriority& state);
void ManageTiles();
+ void CheckForCompletedSetPixels();
void renderingStats(RenderingStats* stats);
@@ -88,6 +90,7 @@ class CC_EXPORT TileManager {
void AssignGpuMemoryToTiles();
void FreeResourcesForTile(Tile*);
void ScheduleManageTiles();
+ void ScheduleCheckForCompletedSetPixels();
void DispatchMoreRasterTasks();
void DispatchOneRasterTask(RasterThread*, scoped_refptr<Tile>);
void OnRasterTaskCompleted(
@@ -95,11 +98,12 @@ class CC_EXPORT TileManager {
scoped_ptr<ResourcePool::Resource>,
scoped_refptr<PicturePileImpl>,
RenderingStats*);
- void DidFinishTileInitialization(Tile*, scoped_ptr<ResourcePool::Resource>);
+ void DidFinishTileInitialization(Tile*);
TileManagerClient* client_;
scoped_ptr<ResourcePool> resource_pool_;
bool manage_tiles_pending_;
+ bool check_for_completed_set_pixels_pending_;
GlobalStateThatImpactsTilePriority global_state_;
@@ -107,10 +111,15 @@ class CC_EXPORT TileManager {
TileVector tiles_;
TileVector tiles_that_need_to_be_rasterized_;
+ typedef std::queue<scoped_refptr<Tile> > TileQueue;
+ TileQueue tiles_with_pending_set_pixels_;
+
typedef ScopedPtrVector<RasterThread> RasterThreadVector;
RasterThreadVector raster_threads_;
RenderingStats rendering_stats_;
+
+ DISALLOW_COPY_AND_ASSIGN(TileManager);
};
} // namespace cc
« no previous file with comments | « cc/tile.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698