Revision a970b3b...

Go back to digest for 3rd November 2013

Features in Office

Dmitry Kazakov committed changes in [calligra/krita-testing-kazakov] /:

Added an option for High Quality image downsampling for OpenGL canvas

1) This option activates a custom shader, which filters the image
with a variation of trapezoidal filter using "one-but-nearest"
mipmap level. This gives quite decent results, although it might
be not perfect from the maths point of view.

2) The patch also sets the default texture size to 256. Otherwise
activation of mipmap generation will make the painting with smaller
brushes insanely slow. This happens because the mipmap is regenerated
for the whole texture every time we change a small portion of it.

File Changes

Added 2 files
  • /data/shaders
  •   krita/highq_downscale.frag
  •   krita/simple_texture.frag
Deleted 1 files
  • krita/data/shaders/display.frag
Modified 14 files
  •   krita/image/kis_signal_compressor.cpp
  •   krita/image/kis_signal_compressor.h
  •   krita/ui/kis_config.cc
  •   krita/ui/kis_config.h
  •   krita/data/shaders/CMakeLists.txt
  •   krita/sdk/tests/testutil.h
  •   krita/ui/forms/wdgdisplaysettings.ui
  •   krita/ui/opengl/kis_opengl.cpp
  •   krita/ui/opengl/kis_opengl.h
  •   krita/ui/opengl/kis_opengl_canvas2.cpp
  •   krita/ui/opengl/kis_opengl_image_textures.cpp
  •   krita/ui/opengl/kis_opengl_image_textures.h
  •   krita/ui/opengl/kis_texture_tile.cpp
  •   krita/ui/opengl/kis_texture_tile.h
17 files changed in total