Hi,

Can you please tell me Where is the CGContextDrawImage() for MacOSx defined?
I have tried setting up a Breakpoints in ImageCG.cpp:197. It breaks
there but when I click 'step into', it never goes to the
implementation of CGContextDrawImage. XCode just jumps to the next
line.

And I also tried building a cscope myself (include .mm file), but when
I  look for CGContextDrawImage(), it only gives me callers for that
function:

*** src/skia/ext/skia_utils_mac.mm:
<global>[107]                  CGContextDrawImage(context, rect, image);

*** src/third_party/WebKit/WebCore/platform/graphics/cg/ImageCG.cpp:
<global>[118]                  CGContextDrawImage(bmap, dst, image);
<global>[197]                  CGContextDrawImage(context,
adjustedDestRect, image);
<global>[211]                  CGContextDrawImage(context,
GraphicsContext(context).roundToDevicePixels(FloatRect(0, 0,
CGImageGetWidth(image), CGImageGetHeight(image))), image);

*** src/third_party/WebKit/WebCore/platform/graphics/cg/PatternCG.cpp:
<global>[45]                   CGContextDrawImage(context, rect, platformImage);

*** 
src/third_party/WebKit/WebCore/platform/graphics/win/GraphicsContextCGWin.cpp:
<global>[101]                  CGContextDrawImage(m_data->m_cgContext,
dstRect, image);
<global>[124]                  CGContextDrawImage(m_data->m_cgContext,
CGRectMake(point.x(), point.y(), image->size().width(),
image->size().height()), cgImage.get());

*** src/third_party/WebKit/WebCore/platform/win/DragImageCGWin.cpp:
<global>[111]                  CGContextDrawImage(targetContext, rect,
srcImage);
<global>[156]                  CGContextDrawImage(drawContext, rect, srcImage);

*** src/third_party/skia/src/ports/SkImageDecoder_CG.cpp:
<global>[83]                   CGContextDrawImage(cg, CGRectMake(0, 0,
width, height), image);

*** src/webkit/glue/webcursor_mac.mm:
<global>[172]                  CGContextDrawImage(context.get(), rect,
image_ptr);

*** src/skia/ext/bitmap_platform_device_mac.cc:
DrawToContext[299]             CGContextDrawImage(context, bounds, sub_image);
DrawToContext[306]             CGContextDrawImage(context, bounds, image);

*** 
src/third_party/WebKit/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm:
print[372]                     CGContextDrawImage(context,
CGRectMake(0, 0, width, height), image.get());

*** src/third_party/skia/experimental/CiCarbonSampleMain.c:
TestDraw[208]                  CGContextDrawImage(cg, r, ref);

*** src/third_party/skia/src/utils/mac/SkBitmap_Mac.cpp:
drawToPort[133]                CGContextDrawImage(cg, rect, image);

*** src/third_party/skia/src/utils/mac/SkOSWindow_Mac.cpp:
doPaint[168]                   CGContextDrawImage(cg, r, img);

*** src/third_party/skia/xcode/hostapp/test.cpp:
SkiaDraw[60]                   CGContextDrawImage(cg, r, gImage);

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to