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

Unified Diff: ui/compositor/compositor.h

Issue 12440005: Use gpu::Mailbox in IPCs instead of std::string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | « ui/compositor/DEPS ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index b5b1f0cbdfd1c442d3d616cd9463271e1e506443..32cb47ef7eb448f685fafdb6bf9feb9629532697 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -35,6 +35,10 @@ class Point;
class Rect;
}
+namespace gpu {
+struct Mailbox;
+}
+
namespace WebKit {
class WebGraphicsContext3D;
}
@@ -150,12 +154,12 @@ class COMPOSITOR_EXPORT Texture : public base::RefCounted<Texture> {
virtual WebKit::WebGraphicsContext3D* HostContext3D() = 0;
// Replaces the texture with the texture from the specified mailbox.
- virtual void Consume(const std::string& mailbox_name,
+ virtual void Consume(const gpu::Mailbox& mailbox_name,
const gfx::Size& new_size) {}
// Moves the texture into the mailbox and returns the mailbox name.
// The texture must have been previously consumed from a mailbox.
- virtual std::string Produce();
+ virtual gpu::Mailbox Produce();
protected:
virtual ~Texture();
« no previous file with comments | « ui/compositor/DEPS ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698