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

Unified Diff: cc/output_surface_impl.h

Issue 11967033: [CLOSED] In-browser software compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the lack SkCanvas::clear scissoring. Created 7 years, 11 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 | « cc/cc_tests.gyp ('k') | cc/output_surface_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output_surface_impl.h
diff --git a/cc/output_surface_impl.h b/cc/output_surface_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..87390567f1118fd4a4248c05a306b1a03c6f7f45
--- /dev/null
+++ b/cc/output_surface_impl.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_OUTPUT_SURFACE_IMPL_H_
+#define CC_OUTPUT_SURFACE_IMPL_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "cc/cc_export.h"
+#include "cc/output_surface.h"
+#include "cc/software_output_device.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
+
+namespace cc {
+
+class CC_EXPORT OutputSurfaceImpl : public OutputSurface {
+ public:
+ explicit OutputSurfaceImpl(
+ scoped_ptr<WebKit::WebGraphicsContext3D> context3d);
+
+ explicit OutputSurfaceImpl(
+ scoped_ptr<cc::SoftwareOutputDevice> software_device);
+
+ OutputSurfaceImpl(
+ scoped_ptr<WebKit::WebGraphicsContext3D> context3d,
+ scoped_ptr<cc::SoftwareOutputDevice> software_device);
+
+ virtual ~OutputSurfaceImpl();
+
+ virtual bool BindToClient(cc::OutputSurfaceClient*) OVERRIDE;
+
+ virtual const struct Capabilities& Capabilities() const OVERRIDE;
+
+ virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE;
+ virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE;
+
+ virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE;
+
+protected:
+ OutputSurfaceClient* client_;
+ struct cc::OutputSurface::Capabilities capabilities_;
+ scoped_ptr<WebKit::WebGraphicsContext3D> context3d_;
+ scoped_ptr<cc::SoftwareOutputDevice> software_device_;
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_SURFACE_IMPL_H_
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698