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

Unified Diff: content/renderer/gpu/compositor_output_surface.h

Issue 10873099: Flag and adapter class for software compositing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 3 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 | « content/public/common/content_switches.cc ('k') | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_output_surface.h
diff --git a/content/renderer/gpu/compositor_output_surface.h b/content/renderer/gpu/compositor_output_surface.h
index 3f4ed8837d989af14c3b495e3fc7c60207f3d4ff..50461a505d1a38aff88a27118d40f52967631414 100644
--- a/content/renderer/gpu/compositor_output_surface.h
+++ b/content/renderer/gpu/compositor_output_surface.h
@@ -12,6 +12,7 @@
#include "base/threading/non_thread_safe.h"
#include "base/time.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorOutputSurface.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSoftwareOutputDevice.h"
namespace base {
class TaskRunner;
@@ -33,7 +34,8 @@ class CompositorOutputSurface
base::TaskRunner* target_task_runner);
CompositorOutputSurface(int32 routing_id,
- WebKit::WebGraphicsContext3D* context3d);
+ WebKit::WebGraphicsContext3D* context3d,
+ WebKit::WebCompositorSoftwareOutputDevice* software);
virtual ~CompositorOutputSurface();
// WebCompositorOutputSurface implementation.
@@ -41,6 +43,7 @@ class CompositorOutputSurface
WebKit::WebCompositorOutputSurfaceClient* client) OVERRIDE;
virtual const Capabilities& capabilities() const OVERRIDE;
virtual WebKit::WebGraphicsContext3D* context3D() const OVERRIDE;
+ virtual WebKit::WebCompositorSoftwareOutputDevice* softwareDevice() const;
virtual void sendFrameToParentCompositor(
const WebKit::WebCompositorFrame&) OVERRIDE;
@@ -54,7 +57,7 @@ class CompositorOutputSurface
int routing_id_;
Capabilities capabilities_;
scoped_ptr<WebKit::WebGraphicsContext3D> context3D_;
+ scoped_ptr<WebKit::WebCompositorSoftwareOutputDevice> software_device_;
};
#endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
-
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698