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

Unified Diff: cc/test/fake_output_surface.cc

Issue 14772021: cc::OutputSurfaceClient::InitializeForGL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not drop resources since coming from resourceless software mode Created 7 years, 6 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: cc/test/fake_output_surface.cc
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index 6c5bc9f849d0fc95ec0b7c4637aeb04c4c35a036..d393ba0c44f17ded1f7145dc1671eb0ad87fb100 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -30,6 +30,17 @@ FakeOutputSurface::FakeOutputSurface(
capabilities_.has_parent_compositor = has_parent;
}
+FakeOutputSurface::FakeOutputSurface(
+ scoped_ptr<WebKit::WebGraphicsContext3D> context3d,
+ scoped_ptr<SoftwareOutputDevice> software_device,
+ bool has_parent)
+ : OutputSurface(context3d.Pass(), software_device.Pass()),
+ num_sent_frames_(0),
+ forced_draw_to_software_device_(false),
+ weak_ptr_factory_(this) {
+ capabilities_.has_parent_compositor = has_parent;
+}
+
FakeOutputSurface::~FakeOutputSurface() {}
void FakeOutputSurface::SendFrameToParentCompositor(

Powered by Google App Engine
This is Rietveld 408576698