summaryrefslogtreecommitdiffstats
path: root/src/display/drawing-item.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-11-24 12:23:54 +0000
committerTavmjong Bah <tavmjong@free.fr>2017-11-24 12:23:54 +0000
commit2a6647cad9a24ed63e53a2d1ca12edaae5449b8a (patch)
tree3c14281a20c500d03c060f9ff7bdf753d5dcef86 /src/display/drawing-item.cpp
parentFix repainting. (diff)
downloadinkscape-2a6647cad9a24ed63e53a2d1ca12edaae5449b8a.tar.gz
inkscape-2a6647cad9a24ed63e53a2d1ca12edaae5449b8a.zip
Remove debugging code and other cleanup.
Diffstat (limited to 'src/display/drawing-item.cpp')
-rw-r--r--src/display/drawing-item.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/display/drawing-item.cpp b/src/display/drawing-item.cpp
index a9408e4b0..cc4673bc8 100644
--- a/src/display/drawing-item.cpp
+++ b/src/display/drawing-item.cpp
@@ -678,15 +678,6 @@ struct MaskLuminanceToAlpha {
unsigned
DrawingItem::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at)
{
- std::cout << "\nDrawingItem::render:" << std::endl;
- std::cout << " area: " << area << std::endl;
- if (_drawbox)
- std::cout << " _drawbox: " << *_drawbox << std::endl;
- else
- std::cout << " No _drawbox" << std::endl;
- std::cout << " Surface: width: " << cairo_image_surface_get_width(dc.rawTarget())
- << " height: " << cairo_image_surface_get_height(dc.rawTarget()) << std::endl;
-
bool outline = _drawing.outline();
bool render_filters = _drawing.renderFilters();
@@ -707,11 +698,9 @@ DrawingItem::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flag
// carea is the area to paint
Geom::OptIntRect carea = Geom::intersect(area, _drawbox);
if (!carea) return RENDER_OK;
- std::cout << " carea: " << *carea << std::endl;
- // Device scale for HiDPI screens (either 1 or 2)
+ // Device scale for HiDPI screens (typically 1 or 2)
int device_scale = dc.surface()->device_scale();
- std::cout << "DrawingItem::render: device_scale: " << device_scale << std::endl;
switch(_antialias){
case 0:
@@ -784,7 +773,6 @@ DrawingItem::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flag
// filters and opacity do not apply when rendering the ancestors of the filtered
// element
if ((flags & RENDER_FILTER_BACKGROUND) || !needs_intermediate_rendering) {
- std::cout << " short-circuit!" << std::endl;
return _renderItem(dc, *carea, flags & ~RENDER_FILTER_BACKGROUND, stop_at);
}
@@ -800,7 +788,6 @@ DrawingItem::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flag
iarea.intersectWith(_drawbox);
}
- std::cout << " intermediate area required! Device scale: " << device_scale << std::endl;
DrawingSurface intermediate(*iarea, device_scale);
DrawingContext ict(intermediate);
unsigned render_result = RENDER_OK;
@@ -870,7 +857,6 @@ DrawingItem::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flag
// 6. Paint the completed rendering onto the base context (or into cache)
if (_cached && _cache) {
- std::cout << " cache!!!!!!!!!!!!!!" << std::endl;
DrawingContext cachect(*_cache);
cachect.rectangle(*carea);
cachect.setOperator(CAIRO_OPERATOR_SOURCE);