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

Unified Diff: ui/compositor/compositor.h

Issue 148003006: Use gpu::Mailbox instead of std:string in IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed typo Created 6 years, 10 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 | « gpu/command_buffer/service/mailbox_manager.h ('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 84ed365803cb7a9b46ee53045325e7df067a238a..21c582e30da5fb5ab52ff6b1c3b84ccf52c894c2 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -40,6 +40,10 @@ class Rect;
class Size;
}
+namespace gpu {
+struct Mailbox;
+}
+
namespace ui {
class Compositor;
@@ -112,12 +116,12 @@ class COMPOSITOR_EXPORT Texture : public base::RefCounted<Texture> {
virtual unsigned int PrepareTexture() = 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,
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 | « gpu/command_buffer/service/mailbox_manager.h ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698