[Groonga-commit] ranguba/chupa-text-decomposer-webkit at b6fc948 [master] Show more log

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jul 11 23:11:35 JST 2017


Kouhei Sutou	2017-07-11 23:11:35 +0900 (Tue, 11 Jul 2017)

  New Revision: b6fc948b6c88cd8a1c6e3fbe0e12e5bce12b7e39
  https://github.com/ranguba/chupa-text-decomposer-webkit/commit/b6fc948b6c88cd8a1c6e3fbe0e12e5bce12b7e39

  Message:
    Show more log

  Modified files:
    lib/chupa-text/decomposers/webkit.rb

  Modified: lib/chupa-text/decomposers/webkit.rb (+7 -0)
===================================================================
--- lib/chupa-text/decomposers/webkit.rb    2017-07-11 17:36:13 +0900 (655256c)
+++ lib/chupa-text/decomposers/webkit.rb    2017-07-11 23:11:35 +0900 (53d2a42)
@@ -96,9 +96,16 @@ module ChupaText
 
           case load_event
           when WebKit2Gtk::LoadEvent::FINISHED
+            debug do
+              "#{log_tag}[screenshot][start] #{view.uri}"
+            end
             view.get_snapshot(:full_document, :none) do |_, result|
               status[:finished] = true
               snapshot_surface = view.get_snapshot_finish(result)
+              debug do
+                size = "#{snapshot_surface.width}x#{snapshot_surface.height}"
+                "#{log_tag}[screenshot][finish] #{view.uri}: #{size}"
+              end
               unless snapshot_surface.width.zero?
                 png = convert_snapshot_surface_to_png(data, snapshot_surface)
                 status[:screenshot] = Screenshot.new("image/png",
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index