Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / cc / output / direct_renderer.h
index 4a447aa..46bfb56 100644 (file)
@@ -12,6 +12,7 @@
 #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 {
 
@@ -59,7 +60,7 @@ class CC_EXPORT DirectRenderer : public Renderer {
     bool disable_picture_quad_image_filtering;
   };
 
-  void SetEnlargePassTextureAmountForTesting(gfx::Vector2d amount);
+  void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount);
 
  protected:
   DirectRenderer(RendererClient* client,
@@ -74,7 +75,7 @@ class CC_EXPORT DirectRenderer : public Renderer {
   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;
@@ -96,6 +97,8 @@ class CC_EXPORT DirectRenderer : public Renderer {
                       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,
@@ -136,6 +139,8 @@ class CC_EXPORT DirectRenderer : public Renderer {
  private:
   gfx::Vector2d enlarge_pass_texture_amount_;
 
+  internal::NamespaceToken on_demand_task_namespace_;
+
   DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
 };