WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Patch
bug-86121-20120510151855.patch (text/plain), 12.93 KB, created by
Mark Pilgrim (Google)
on 2012-05-10 12:18:59 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Mark Pilgrim (Google)
Created:
2012-05-10 12:18:59 PDT
Size:
12.93 KB
patch
obsolete
>Index: Source/Platform/ChangeLog >=================================================================== >--- Source/Platform/ChangeLog (revision 116675) >+++ Source/Platform/ChangeLog (working copy) >@@ -1,3 +1,21 @@ >+2012-05-10 Mark Pilgrim <pilgrim@chromium.org> >+ >+ [Chromium] Remove WEBKIT_USING_SKIA ifdefs that are always true >+ https://bugs.webkit.org/show_bug.cgi?id=86121 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Chromium always uses Skia now, so this just removes the barriers >+ around code that was previously #if'd. >+ >+ * chromium/public/WebCanvas.h: >+ (WebKit): >+ * chromium/public/WebGraphicsContext3D.h: >+ (WebGraphicsContext3D): >+ (WebKit::WebGraphicsContext3D::onCreateGrGLInterface): >+ * chromium/public/WebImage.h: >+ (WebImage): >+ > 2012-05-10 Mark Pilgrim <pilgrim@chromium.org> > > [Chromium] Remove dead code behind unused WEBKIT_USING_CG >Index: Source/Platform/chromium/public/WebCanvas.h >=================================================================== >--- Source/Platform/chromium/public/WebCanvas.h (revision 116666) >+++ Source/Platform/chromium/public/WebCanvas.h (working copy) >@@ -33,17 +33,11 @@ > > #include "WebCommon.h" > >-#if WEBKIT_USING_SKIA > class SkCanvas; >-#endif > > namespace WebKit { > >-#if WEBKIT_USING_SKIA > typedef SkCanvas WebCanvas; >-#else >-#error "Need to define WebCanvas" >-#endif > > } // namespace WebKit > >Index: Source/Platform/chromium/public/WebGraphicsContext3D.h >=================================================================== >--- Source/Platform/chromium/public/WebGraphicsContext3D.h (revision 116666) >+++ Source/Platform/chromium/public/WebGraphicsContext3D.h (working copy) >@@ -38,9 +38,7 @@ > > #define USE_WGC3D_TYPES > >-#if WEBKIT_USING_SKIA > struct GrGLInterface; >-#endif > > namespace WebKit { > >@@ -413,14 +411,10 @@ public: > virtual void getQueryivEXT(WGC3Denum target, WGC3Denum pname, WGC3Dint* params) { } > virtual void getQueryObjectuivEXT(WebGLId query, WGC3Denum pname, WGC3Duint* params) { } > >-#if WEBKIT_USING_SKIA > GrGLInterface* createGrGLInterface(); >-#endif > > protected: >-#if WEBKIT_USING_SKIA > virtual GrGLInterface* onCreateGrGLInterface() { return 0; } >-#endif > > }; > >Index: Source/Platform/chromium/public/WebImage.h >=================================================================== >--- Source/Platform/chromium/public/WebImage.h (revision 116666) >+++ Source/Platform/chromium/public/WebImage.h (working copy) >@@ -33,9 +33,7 @@ > > #include "WebCommon.h" > >-#if WEBKIT_USING_SKIA > #include <SkBitmap.h> >-#endif > > #if WEBKIT_IMPLEMENTATION > namespace WebCore { class Image; } >@@ -81,7 +79,6 @@ public: > WebImage& operator=(const WTF::PassRefPtr<WebCore::Image>&); > #endif > >-#if WEBKIT_USING_SKIA > WebImage(const SkBitmap& bitmap) : m_bitmap(bitmap) { } > > WebImage& operator=(const SkBitmap& bitmap) >@@ -97,7 +94,6 @@ private: > void init() { } > SkBitmap m_bitmap; > >-#endif > }; > > } // namespace WebKit >Index: Source/WebKit/chromium/ChangeLog >=================================================================== >--- Source/WebKit/chromium/ChangeLog (revision 116675) >+++ Source/WebKit/chromium/ChangeLog (working copy) >@@ -1,3 +1,37 @@ >+2012-05-10 Mark Pilgrim <pilgrim@chromium.org> >+ >+ [Chromium] Remove WEBKIT_USING_SKIA ifdefs that are always true >+ https://bugs.webkit.org/show_bug.cgi?id=86121 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Chromium always uses Skia now, so this just removes the barriers >+ around code that was previously #if'd. >+ >+ * README: >+ * src/DragClientImpl.cpp: >+ (WebKit::DragClientImpl::startDrag): >+ * src/PageOverlay.cpp: >+ * src/PlatformSupport.cpp: >+ (WebCore::PlatformSupport::clipboardWriteImage): >+ (WebCore::PlatformSupport::paintScrollbarThumb): >+ * src/WebContentLayerImpl.cpp: >+ (WebKit::WebContentLayerImpl::paintContents): >+ * src/WebFontImpl.cpp: >+ (WebKit::WebFontImpl::drawText): >+ * src/WebFrameImpl.cpp: >+ (WebKit::WebFrameImpl::printPage): >+ (WebKit::WebFrameImpl::printPagesWithBoundaries): >+ * src/WebGraphicsContext3D.cpp: >+ (WebKit::WebGraphicsContext3D::createGrGLInterface): >+ * src/WebImageDecoder.cpp: >+ (WebKit::WebImageDecoder::getFrameAtIndex): >+ * src/WebPluginContainerImpl.cpp: >+ (WebKit::WebPluginContainerImpl::paint): >+ (WebKit::WebPluginContainerImpl::printPage): >+ * src/painting/GraphicsContextBuilder.h: >+ (WebKit): >+ > 2012-05-10 Varun Jain <varunjain@google.com> > > [chromium] Trigger context menu for long press gesture >Index: Source/WebKit/chromium/README >=================================================================== >--- Source/WebKit/chromium/README (revision 116666) >+++ Source/WebKit/chromium/README (working copy) >@@ -35,8 +35,6 @@ DEFINES > called by a public inline-defined method should be annotated with > WEBKIT_EXPORT. WEBKIT_EXPORT is not used to export whole classes. > >- WEBKIT_USING_SKIA is defined when using Skia as the graphics library. >- > WEBKIT_USING_V8 is defined when using V8 as the JavaScript library. > > WEBKIT_USING_JSC is defined when using JSC as the JavaScript library. >Index: Source/WebKit/chromium/src/DragClientImpl.cpp >=================================================================== >--- Source/WebKit/chromium/src/DragClientImpl.cpp (revision 116666) >+++ Source/WebKit/chromium/src/DragClientImpl.cpp (working copy) >@@ -89,11 +89,7 @@ void DragClientImpl::startDrag(DragImage > WebPoint offsetPoint(offsetSize.width(), offsetSize.height()); > m_webView->startDragging( > dragData, static_cast<WebDragOperationsMask>(dragOperationMask), >-#if WEBKIT_USING_SKIA > dragImage ? WebImage(*dragImage) : WebImage(), >-#else >- dragImage ? WebImage(dragImage) : WebImage(), >-#endif > offsetPoint); > } > >Index: Source/WebKit/chromium/src/PageOverlay.cpp >=================================================================== >--- Source/WebKit/chromium/src/PageOverlay.cpp (revision 116666) >+++ Source/WebKit/chromium/src/PageOverlay.cpp (working copy) >@@ -46,9 +46,7 @@ namespace { > > WebCanvas* ToWebCanvas(GraphicsContext* gc) > { >-#if WEBKIT_USING_SKIA > return gc->platformContext()->canvas(); >-#endif > } > > } // namespace >Index: Source/WebKit/chromium/src/PlatformSupport.cpp >=================================================================== >--- Source/WebKit/chromium/src/PlatformSupport.cpp (revision 116666) >+++ Source/WebKit/chromium/src/PlatformSupport.cpp (working copy) >@@ -80,9 +80,7 @@ > #include "platform/android/WebThemeEngine.h" > #endif > >-#if WEBKIT_USING_SKIA > #include "NativeImageSkia.h" >-#endif > > #include "AsyncFileSystemChromium.h" > #include "BitmapImage.h" >@@ -224,11 +222,7 @@ void PlatformSupport::clipboardWriteImag > const KURL& sourceURL, > const String& title) > { >-#if WEBKIT_USING_SKIA > WebImage webImage(image->bitmap()); >-#else >- WebImage webImage(image); >-#endif > webKitPlatformSupport()->clipboard()->writeImage(webImage, sourceURL, title); > } > >@@ -672,11 +666,7 @@ void PlatformSupport::paintScrollbarThum > webThemeScrollbarInfo.visibleSize = scrollbarInfo.visibleSize; > webThemeScrollbarInfo.totalSize = scrollbarInfo.totalSize; > >-#if WEBKIT_USING_SKIA > WebKit::WebCanvas* webCanvas = gc->platformContext()->canvas(); >-#else >- WebKit::WebCanvas* webCanvas = gc->platformContext(); >-#endif > webKitPlatformSupport()->themeEngine()->paintScrollbarThumb( > webCanvas, > static_cast<WebThemeEngine::State>(state), >Index: Source/WebKit/chromium/src/WebContentLayerImpl.cpp >=================================================================== >--- Source/WebKit/chromium/src/WebContentLayerImpl.cpp (revision 116666) >+++ Source/WebKit/chromium/src/WebContentLayerImpl.cpp (working copy) >@@ -30,9 +30,7 @@ > #include "platform/WebRect.h" > #include "GraphicsContext.h" > #include "platform/WebCanvas.h" >-#if WEBKIT_USING_SKIA > #include "PlatformContextSkia.h" >-#endif > > using namespace WebCore; > >@@ -64,9 +62,7 @@ void WebContentLayerImpl::paintContents( > { > if (!m_contentClient) > return; >-#if WEBKIT_USING_SKIA > WebCanvas* canvas = gc.platformContext()->canvas(); >-#endif > m_contentClient->paintContents(canvas, WebRect(clip)); > } > >Index: Source/WebKit/chromium/src/WebFontImpl.cpp >=================================================================== >--- Source/WebKit/chromium/src/WebFontImpl.cpp (revision 116666) >+++ Source/WebKit/chromium/src/WebFontImpl.cpp (working copy) >@@ -99,9 +99,7 @@ void WebFontImpl::drawText(WebCanvas* ca > GraphicsContextBuilder builder(canvas); > GraphicsContext& gc = builder.context(); > >-#if WEBKIT_USING_SKIA > gc.platformContext()->setDrawingToImageBuffer(!canvasIsOpaque); >-#endif > > gc.save(); > gc.setFillColor(color, ColorSpaceDeviceRGB); >Index: Source/WebKit/chromium/src/WebFrameImpl.cpp >=================================================================== >--- Source/WebKit/chromium/src/WebFrameImpl.cpp (revision 116666) >+++ Source/WebKit/chromium/src/WebFrameImpl.cpp (working copy) >@@ -1493,9 +1493,7 @@ float WebFrameImpl::printPage(int page, > > GraphicsContextBuilder builder(canvas); > GraphicsContext& gc = builder.context(); >-#if WEBKIT_USING_SKIA > gc.platformContext()->setPrinting(true); >-#endif > > return m_printContext->spoolPage(gc, page); > } >@@ -1971,9 +1969,7 @@ void WebFrameImpl::printPagesWithBoundar > > GraphicsContextBuilder builder(canvas); > GraphicsContext& graphicsContext = builder.context(); >-#if WEBKIT_USING_SKIA > graphicsContext.platformContext()->setPrinting(true); >-#endif > > m_printContext->spoolAllPagesWithBoundaries(graphicsContext, > FloatSize(pageSizeInPixels.width, pageSizeInPixels.height)); >Index: Source/WebKit/chromium/src/WebGraphicsContext3D.cpp >=================================================================== >--- Source/WebKit/chromium/src/WebGraphicsContext3D.cpp (revision 116666) >+++ Source/WebKit/chromium/src/WebGraphicsContext3D.cpp (working copy) >@@ -30,8 +30,6 @@ > > namespace WebKit { > >-#if WEBKIT_USING_SKIA >- > namespace { > void bindWebGraphicsContext3DGLContextCallback(const GrGLInterface* interface) > { >@@ -49,6 +47,4 @@ GrGLInterface* WebGraphicsContext3D::cre > return interface; > } > >-#endif >- > } // namespace WebKit >Index: Source/WebKit/chromium/src/WebImageDecoder.cpp >=================================================================== >--- Source/WebKit/chromium/src/WebImageDecoder.cpp (revision 116666) >+++ Source/WebKit/chromium/src/WebImageDecoder.cpp (working copy) >@@ -39,10 +39,8 @@ > > #include <public/WebImage.h> > >-#if WEBKIT_USING_SKIA > #include <wtf/OwnPtr.h> > #include <wtf/PassOwnPtr.h> >-#endif > > #include <wtf/PassRefPtr.h> > >@@ -112,10 +110,8 @@ WebImage WebImageDecoder::getFrameAtInde > ImageFrame* const frameBuffer = m_private->frameBufferAtIndex(index); > if (!frameBuffer) > return WebImage(); >-#if WEBKIT_USING_SKIA > OwnPtr<NativeImageSkia> image = adoptPtr(frameBuffer->asNewNativeImage()); > return WebImage(image->bitmap()); >-#endif > } > > } // namespace WebKit >Index: Source/WebKit/chromium/src/WebPluginContainerImpl.cpp >=================================================================== >--- Source/WebKit/chromium/src/WebPluginContainerImpl.cpp (revision 116666) >+++ Source/WebKit/chromium/src/WebPluginContainerImpl.cpp (working copy) >@@ -80,9 +80,7 @@ > #include "PlatformGestureEvent.h" > #endif > >-#if WEBKIT_USING_SKIA > #include "PlatformContextSkia.h" >-#endif > > using namespace WebCore; > >@@ -126,9 +124,7 @@ void WebPluginContainerImpl::paint(Graph > IntPoint origin = view->windowToContents(IntPoint(0, 0)); > gc->translate(static_cast<float>(origin.x()), static_cast<float>(origin.y())); > >-#if WEBKIT_USING_SKIA > WebCanvas* canvas = gc->platformContext()->canvas(); >-#endif > > IntRect windowRect = > IntRect(view->contentsToWindow(damageRect.location()), damageRect.size()); >@@ -257,9 +253,7 @@ bool WebPluginContainerImpl::printPage(i > WebCore::GraphicsContext* gc) > { > gc->save(); >-#if WEBKIT_USING_SKIA > WebCanvas* canvas = gc->platformContext()->canvas(); >-#endif > bool ret = m_webPlugin->printPage(pageNumber, canvas); > gc->restore(); > return ret; >Index: Source/WebKit/chromium/src/painting/GraphicsContextBuilder.h >=================================================================== >--- Source/WebKit/chromium/src/painting/GraphicsContextBuilder.h (revision 116666) >+++ Source/WebKit/chromium/src/painting/GraphicsContextBuilder.h (working copy) >@@ -33,14 +33,10 @@ > > #include "GraphicsContext.h" > >-#if WEBKIT_USING_SKIA > #include "PlatformContextSkia.h" >-#endif > > namespace WebKit { > >-#if WEBKIT_USING_SKIA >- > class GraphicsContextBuilder { > public: > GraphicsContextBuilder(WebCanvas* canvas) >@@ -56,10 +52,6 @@ private: > WebCore::GraphicsContext m_graphicsContext; > }; > >-#else >-#error "Need to define GraphicsContextBuilder!" >-#endif >- > } // namespace WebKit > > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 86121
: 141222