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

Unified Diff: ui/compositor/compositor.h

Issue 228083002: Make ReflectorImpl use mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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/aura/bench/bench_main.cc ('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 7b4ce6a79dd81d57703e8e13c7fe9fea2f3acd01..3a1530b37f0b12673e7538969783127b209a64a1 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -103,39 +103,6 @@ class COMPOSITOR_EXPORT ContextFactory {
virtual bool DoesCreateTestContexts() = 0;
};
-// Texture provide an abstraction over the external texture that can be passed
-// to a layer.
-class COMPOSITOR_EXPORT Texture : public base::RefCounted<Texture> {
- public:
- Texture(bool flipped, const gfx::Size& size, float device_scale_factor);
-
- bool flipped() const { return flipped_; }
- gfx::Size size() const { return size_; }
- float device_scale_factor() const { return device_scale_factor_; }
-
- virtual unsigned int PrepareTexture() = 0;
-
- // Replaces the texture with the texture from the specified mailbox.
- 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 gpu::Mailbox Produce();
-
- protected:
- virtual ~Texture();
- gfx::Size size_; // in pixel
-
- private:
- friend class base::RefCounted<Texture>;
-
- bool flipped_;
- float device_scale_factor_;
-
- DISALLOW_COPY_AND_ASSIGN(Texture);
-};
-
// This class represents a lock on the compositor, that can be used to prevent
// commits to the compositor tree while we're waiting for an asynchronous
// event. The typical use case is when waiting for a renderer to produce a frame
« no previous file with comments | « ui/aura/bench/bench_main.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698