Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / cc / test / fake_proxy.h
index 1d62c6f..27cd72c 100644 (file)
@@ -13,11 +13,11 @@ namespace cc {
 
 class FakeProxy : public Proxy {
  public:
-  FakeProxy() : Proxy(NULL), layer_tree_host_(NULL) {}
+  FakeProxy() : Proxy(NULL, NULL), layer_tree_host_(NULL) {}
   explicit FakeProxy(
+      scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
       scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner)
-      : Proxy(impl_task_runner),
-        layer_tree_host_(NULL) {}
+      : Proxy(main_task_runner, impl_task_runner), layer_tree_host_(NULL) {}
 
   void SetLayerTreeHost(LayerTreeHost* host);
 
@@ -40,9 +40,10 @@ class FakeProxy : public Proxy {
   virtual void Stop() OVERRIDE {}
   virtual void ForceSerializeOnSwapBuffers() OVERRIDE {}
   virtual size_t MaxPartialTextureUpdates() const OVERRIDE;
+  virtual bool SupportsImplScrolling() const OVERRIDE;
   virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {}
-  virtual bool CommitPendingForTesting() OVERRIDE;
-  virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
+  virtual bool MainFrameWillHappenForTesting() OVERRIDE;
+  virtual void AsValueInto(base::debug::TracedValue* state) const OVERRIDE;
 
   virtual RendererCapabilities& GetRendererCapabilities();
   void SetMaxPartialTextureUpdates(size_t max);