From 2f47fc457801054fb68055b4649e21af609f81dc Mon Sep 17 00:00:00 2001 From: "dhollowa@chromium.org" Date: Mon, 21 Nov 2011 03:12:17 +0000 Subject: compositor_unittests target is unimplmented on Mac Adds necessary pieces to get the WebKit compositor working with compositor_unittests target on Mac. Required gyp build flags are: 'use_aura': 1, 'use_webkit_compositor': 1, 'use_skia': 1, BUG=104390, 104555 TEST=compositor_unittests --gtest_filter=LayerWithRealCompositorTest.* passes and shows correct visual results. Review URL: http://codereview.chromium.org/8486020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110875 0039d316-1c4b-4281-b951-d872f2087c98 --- printing/printed_document.h | 2 +- printing/printing.gyp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'printing') diff --git a/printing/printed_document.h b/printing/printed_document.h index 7233df5..3e3217a 100644 --- a/printing/printed_document.h +++ b/printing/printed_document.h @@ -51,7 +51,7 @@ class PRINTING_EXPORT PrintedDocument // Draws the page in the context. // Note: locks for a short amount of time in debug only. -#if defined(OS_WIN) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_MACOSX) && !defined(USE_AURA) void RenderPrintedPage(const PrintedPage& page, gfx::NativeDrawingContext context) const; #elif defined(OS_POSIX) diff --git a/printing/printing.gyp b/printing/printing.gyp index 34e3b4e..495fc73 100644 --- a/printing/printing.gyp +++ b/printing/printing.gyp @@ -111,6 +111,14 @@ ['exclude', 'metafile_skia_wrapper\\.(cc|h)$'], ], }], + # Mac-Aura does not support printing. + ['OS=="mac" and use_aura==1',{ + 'sources!': [ + 'printed_document_mac.cc', + 'printing_context_mac.mm', + 'printing_context_mac.h', + ], + }], ['OS=="mac" and use_aura==0',{ 'sources': [ 'printing_context_mac.mm', -- cgit v1.1