Changeset 106601 in webkit
- Timestamp:
- Feb 2, 2012 4:06:57 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106593 r106601 1 2012-02-02 Justin Novosad <junov@chromium.org> 2 3 [Chromium] Use SkCanvas::flush in skia port 4 https://bugs.webkit.org/show_bug.cgi?id=77463 5 6 Reviewed by Stephen White. 7 8 Code cleanup in skia port. Using SkCanvas::flush to remove 9 unnecessary dependency on GrContext. Removed unnecessary inclusions 10 and forward declarations of GrContext in several source files. 11 12 * platform/graphics/chromium/Canvas2DLayerChromium.cpp: 13 (WebCore::Canvas2DLayerChromium::paintContentsIfDirty): 14 * platform/graphics/chromium/LayerRendererChromium.cpp: 15 * platform/graphics/chromium/LayerRendererChromium.h: 16 * platform/graphics/chromium/cc/CCLayerTreeHost.h: 17 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h: 18 * platform/graphics/chromium/cc/CCProxy.h: 19 * platform/graphics/skia/PlatformContextSkia.cpp: 20 1 21 2012-02-02 Chris Marrin <cmarrin@apple.com> 2 22 -
trunk/Source/WebCore/platform/graphics/chromium/Canvas2DLayerChromium.cpp
r106500 r106601 42 42 #include "LayerRendererChromium.h" // For the GLC() macro 43 43 44 #include "GrContext.h"45 44 #include "SkCanvas.h" 46 #include "SkDevice.h"47 45 48 46 namespace WebCore { … … 114 112 ASSERT_UNUSED(success, success); 115 113 116 // FIXME: Replace this block of skia code with m_canvas->flush, when that117 // API becomes available.118 // https://bugs.webkit.org/show_bug.cgi?id=77463119 114 if (m_canvas) 120 m_canvas->getDevice()->accessRenderTarget(); // Triggers execution of pending draw operations. 121 122 GrContext* grContext = m_context->grContext(); 123 if (grContext) 124 grContext->flush(); 115 m_canvas->flush(); 125 116 126 117 m_context->flush(); -
trunk/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
r106306 r106601 67 67 #if USE(SKIA) 68 68 #include "Extensions3D.h" 69 #include "GrContext.h"70 69 #include "NativeImageSkia.h" 71 70 #include "PlatformContextSkia.h" -
trunk/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.h
r105311 r106601 57 57 #endif 58 58 59 #if USE(SKIA)60 class GrContext;61 #endif62 63 59 namespace WebCore { 64 60 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.h
r106383 r106601 39 39 #include <wtf/RefCounted.h> 40 40 41 #if USE(SKIA)42 class GrContext;43 #endif44 45 41 namespace WebCore { 46 42 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.h
r106158 r106601 32 32 #include "cc/CCRenderPass.h" 33 33 #include <wtf/RefPtr.h> 34 35 #if USE(SKIA)36 class GrContext;37 #endif38 34 39 35 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCProxy.h
r105583 r106601 31 31 #include <wtf/PassRefPtr.h> 32 32 #include <wtf/Threading.h> 33 34 #if USE(SKIA)35 class GrContext;36 #endif37 33 38 34 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp
r104861 r106601 50 50 #include "SkDashPathEffect.h" 51 51 #include "SkShader.h" 52 53 #include "GrContext.h"54 #include "SkGpuDevice.h"55 52 56 53 #include <wtf/MathExtras.h>
Note: See TracChangeset
for help on using the changeset viewer.