#include "cc/output/renderer.h"
#include "cc/resources/resource_provider.h"
#include "cc/resources/scoped_resource.h"
+#include "cc/resources/task_graph_runner.h"
namespace cc {
bool disable_picture_quad_image_filtering;
};
- void SetEnlargePassTextureAmountForTesting(gfx::Vector2d amount);
+ void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount);
protected:
DirectRenderer(RendererClient* client,
void InitializeViewport(DrawingFrame* frame,
const gfx::Rect& draw_rect,
const gfx::Rect& viewport_rect,
- gfx::Size surface_size);
+ const gfx::Size& surface_size);
gfx::Rect MoveFromDrawToWindowSpace(const gfx::RectF& draw_rect) const;
bool NeedDeviceClip(const DrawingFrame* frame) const;
bool allow_partial_swap);
bool UseRenderPass(DrawingFrame* frame, const RenderPass* render_pass);
+ void RunOnDemandRasterTask(internal::Task* on_demand_raster_task);
+
virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) = 0;
virtual bool BindFramebufferToTexture(DrawingFrame* frame,
const ScopedResource* resource,
private:
gfx::Vector2d enlarge_pass_texture_amount_;
+ internal::NamespaceToken on_demand_task_namespace_;
+
DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
};