diff Framework/Layers/ILayerSource.h @ 96:f8bce1bebe01 wasm

removal of the NotifyLayerError callback
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 May 2017 10:30:57 +0200
parents 64e60018943f
children d18dcc963930
line wrap: on
line diff
--- a/Framework/Layers/ILayerSource.h	Tue May 30 10:12:54 2017 +0200
+++ b/Framework/Layers/ILayerSource.h	Tue May 30 10:30:57 2017 +0200
@@ -51,15 +51,12 @@
       virtual void NotifySliceChange(const ILayerSource& source,
                                      const Slice& slice) = 0;
  
-      // The layer must be deleted by the observer. "layer" will never
-      // be "NULL", otherwise "NotifyLayerError()" would have been
-      // called.
+      // The layer must be deleted by the observer that releases the
+      // std::auto_ptr
       virtual void NotifyLayerReady(std::auto_ptr<ILayerRenderer>& layer,
                                     const ILayerSource& source,
-                                    const Slice& slice) = 0;
-
-      virtual void NotifyLayerError(const ILayerSource& source,
-                                    const SliceGeometry& slice) = 0;
+                                    const Slice& slice,
+                                    bool isError) = 0;
     };
     
     virtual ~ILayerSource()