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

Unified Diff: cc/resource_provider.h

Issue 11412043: cc: Add asynchronous setPixel interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | « no previous file | cc/resource_provider.cc » ('j') | cc/resource_provider.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_provider.h
diff --git a/cc/resource_provider.h b/cc/resource_provider.h
index 3d7b208b01bd69f8367fce2be4041356d9e67512..6dad7e96025a942b5599b49ed4aab15c0c7f8e8b 100644
--- a/cc/resource_provider.h
+++ b/cc/resource_provider.h
@@ -209,6 +209,11 @@ public:
// Update pixels from acquired pixel buffer.
void setPixelsFromBuffer(ResourceId id);
+ // Asynchronously update pixels from acquired pixel buffer.
+ void beginSetPixels(ResourceId id);
piman 2012/11/27 00:40:01 naming nit: I would name this something like setPi
+ bool didSetPixelsComplete(ResourceId id);
+ void abortSetPixels(ResourceId id);
+
private:
struct Resource {
Resource();
@@ -218,6 +223,8 @@ private:
unsigned glId;
// Pixel buffer used for set pixels without unnecessary copying.
unsigned glPixelBufferId;
+ // Query used to determine when asynchronous set pixels complete.
+ unsigned glUploadQueryId;
Mailbox mailbox;
uint8_t* pixels;
uint8_t* pixelBuffer;
« no previous file with comments | « no previous file | cc/resource_provider.cc » ('j') | cc/resource_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698