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

Unified Diff: content/browser/renderer_host/accelerated_surface_container_linux.h

Issue 8307001: Enable accelerated compositing of web pages when using webkit compositor (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 9 years, 2 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
Index: content/browser/renderer_host/accelerated_surface_container_linux.h
diff --git a/content/browser/renderer_host/accelerated_surface_container_linux.h b/content/browser/renderer_host/accelerated_surface_container_linux.h
index b3261c4547e2b6db22c63d7446b6bc5ce1aea3d4..3dfbf2214a5e4058dfc01262b5cf47dc725c8a8b 100644
--- a/content/browser/renderer_host/accelerated_surface_container_linux.h
+++ b/content/browser/renderer_host/accelerated_surface_container_linux.h
@@ -7,22 +7,18 @@
#pragma once
#include "base/basictypes.h"
-#include "ui/gfx/compositor/compositor_gl.h"
+#include "ui/gfx/compositor/compositor.h"
#include "ui/gfx/surface/transport_dib.h"
// Helper class for storing image data from the GPU process renderered
// on behalf of the RWHVV. It assumes that GL context that will display
// the image data is current when an instance of this object is created
// or destroyed.
-class AcceleratedSurfaceContainerLinux : public ui::TextureGL {
+class AcceleratedSurfaceContainerLinux {
public:
- static AcceleratedSurfaceContainerLinux* CreateAcceleratedSurfaceContainer(
- const gfx::Size& size);
-
- // TextureGL implementation
- virtual void SetCanvas(const SkCanvas& canvas,
- const gfx::Point& origin,
- const gfx::Size& overall_size) OVERRIDE;
+ virtual ~AcceleratedSurfaceContainerLinux() { }
+ virtual void AddRef() = 0;
+ virtual void Release() = 0;
// Initialize the surface container, and returns an ID for it.
// The |surface_id| given to this function may be modified, and the modified
@@ -31,14 +27,11 @@ class AcceleratedSurfaceContainerLinux : public ui::TextureGL {
// Some implementations of this class use shared memory, this is the handle
// to the shared buffer, which is part of the surface container.
- virtual TransportDIB::Handle Handle() const;
+ virtual TransportDIB::Handle Handle() const = 0;
- protected:
- explicit AcceleratedSurfaceContainerLinux(const gfx::Size& size);
+ virtual ui::Texture* GetTexture() = 0;
- private:
- DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerLinux);
+ static AcceleratedSurfaceContainerLinux* Create(const gfx::Size& size);
};
#endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_
-

Powered by Google App Engine
This is Rietveld 408576698