new FakeOutputSurface(software_device.Pass(), true));
}
- // TODO(boliu): Use a general factory that takes Capabilities arg.
static scoped_ptr<FakeOutputSurface> CreateDeferredGL(
- scoped_ptr<SoftwareOutputDevice> software_device) {
+ scoped_ptr<SoftwareOutputDevice> software_device,
+ bool delegated_rendering) {
scoped_ptr<FakeOutputSurface> result(
- new FakeOutputSurface(software_device.Pass(), false));
+ new FakeOutputSurface(software_device.Pass(), delegated_rendering));
result->capabilities_.deferred_gl_initialization = true;
return result.Pass();
}
virtual void SetNeedsBeginFrame(bool enable) OVERRIDE;
bool needs_begin_frame() const { return needs_begin_frame_; }
- void set_forced_draw_to_software_device(bool forced) {
- forced_draw_to_software_device_ = forced;
- }
- virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE;
-
virtual bool BindToClient(OutputSurfaceClient* client) OVERRIDE;
using OutputSurface::ReleaseGL;
CompositorFrame last_sent_frame_;
size_t num_sent_frames_;
bool needs_begin_frame_;
- bool forced_draw_to_software_device_;
bool has_external_stencil_test_;
TransferableResourceArray resources_held_by_parent_;
- base::WeakPtrFactory<FakeOutputSurface> fake_weak_ptr_factory_;
scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_;
+
+ base::WeakPtrFactory<FakeOutputSurface> fake_weak_ptr_factory_;
};
} // namespace cc