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

Unified Diff: cc/resource_provider.h

Issue 11888010: Cosmetic cleanup to texture_layer mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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/cc.gyp ('k') | 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 56c0f8d71819a1cbc3d74638f6f542aa5b87178f..c4776c21f9f6a89b0023abcaf1fd582786f87cb2 100644
--- a/cc/resource_provider.h
+++ b/cc/resource_provider.h
@@ -17,6 +17,7 @@
#include "cc/cc_export.h"
#include "cc/output_surface.h"
#include "cc/texture_copier.h"
+#include "cc/texture_mailbox.h"
#include "cc/transferable_resource.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -86,7 +87,7 @@ public:
ResourceId createResourceFromExternalTexture(unsigned textureId);
// Wraps an external texture mailbox into a GL resource.
- ResourceId createResourceFromTextureMailbox(const std::string& mailboxName, const base::Callback<void(unsigned)>& releaseCallback);
+ ResourceId createResourceFromTextureMailbox(const TextureMailbox&);
void deleteResource(ResourceId);
@@ -252,8 +253,7 @@ private:
unsigned glPixelBufferId;
// Query used to determine when asynchronous set pixels complete.
unsigned glUploadQueryId;
- Mailbox mailbox;
- base::Callback<void(unsigned)> mailboxReleaseCallback;
+ TextureMailbox mailbox;
uint8_t* pixels;
uint8_t* pixelBuffer;
int lockForReadCount;
« no previous file with comments | « cc/cc.gyp ('k') | cc/resource_provider.cc » ('j') | cc/resource_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698