Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-03-24 03:35:27 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-03-24 11:25:51 +0300
commitafd2fc313e7d9cceb841f4c2cfc5500bffa1c8d5 (patch)
tree41058b7ea48eda20cbe5b0e4b8dddfb652dc2216
parentc91d39e47350fac63635abd815162a59c0552cf4 (diff)
Cleanup: remove debug prints
-rw-r--r--source/blender/draw/engines/image/image_drawing_mode.hh16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/draw/engines/image/image_drawing_mode.hh b/source/blender/draw/engines/image/image_drawing_mode.hh
index f29226cf50b..eac7925ba8f 100644
--- a/source/blender/draw/engines/image/image_drawing_mode.hh
+++ b/source/blender/draw/engines/image/image_drawing_mode.hh
@@ -200,21 +200,16 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD
case ePartialUpdateCollectResult::FullUpdateNeeded:
instance_data.mark_all_texture_slots_dirty();
instance_data.float_buffers.clear();
- printf("full\n");
break;
case ePartialUpdateCollectResult::NoChangesDetected:
- printf("no changes\n,");
break;
case ePartialUpdateCollectResult::PartialChangesDetected:
- printf("partial changes\n");
/* Partial update when wrap repeat is enabled is not supported. */
if (instance_data.flags.do_tile_drawing) {
- printf("A\n");
instance_data.float_buffers.clear();
instance_data.mark_all_texture_slots_dirty();
}
else {
- printf("B\n");
do_partial_update(changes, instance_data);
}
break;
@@ -256,12 +251,10 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD
while (iterator.get_next_change() == ePartialUpdateIterResult::ChangeAvailable) {
/* Quick exit when tile_buffer isn't availble. */
if (iterator.tile_data.tile_buffer == nullptr) {
- printf("no tile buffer\n");
continue;
}
ImBuf *tile_buffer = ensure_float_buffer(instance_data, iterator.tile_data.tile_buffer);
if (tile_buffer != iterator.tile_data.tile_buffer) {
- printf("float buffer partial\n");
do_partial_update_float_buffer(tile_buffer, iterator);
}
@@ -272,11 +265,9 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD
const TextureInfo &info = instance_data.texture_infos[i];
/* Dirty images will receive a full update. No need to do a partial one now. */
if (info.dirty) {
- printf("dirty skip\n");
continue;
}
if (!info.visible) {
- printf("invisible skip\n");
continue;
}
GPUTexture *texture = info.texture;
@@ -307,7 +298,6 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD
&changed_region_in_uv_space,
&changed_overlapping_region_in_uv_space);
if (!region_overlap) {
- printf("region overlap skip\n");
continue;
}
// convert the overlapping region to texel space and to ss_pixel space...
@@ -362,12 +352,6 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD
}
}
- printf("update sub %d %d %d %d\n",
- gpu_texture_region_to_update.xmin,
- gpu_texture_region_to_update.ymin,
- extracted_buffer.x,
- extracted_buffer.y
- );
GPU_texture_update_sub(texture,
GPU_DATA_FLOAT,
extracted_buffer.rect_float,