Changeset 90661 in webkit
- Timestamp:
- Jul 8, 2011, 1:28:54 PM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r90654 r90661 1 2011-07-08 Mike Reed <reed@google.com> 2 3 remove (empty) indirection between GraphicsContextPlatformPrivate and PlatformContextSkia 4 https://bugs.webkit.org/show_bug.cgi?id=64178 5 6 Reviewed by Stephen White. 7 8 No new tests. no functionality change, other than removing an indirection that is not needed 9 10 * platform/graphics/GraphicsContext.h: 11 * platform/graphics/skia/GraphicsContextPlatformPrivate.h: Removed. 12 * platform/graphics/skia/GraphicsContextSkia.cpp: 13 (WebCore::GraphicsContext::platformInit): 14 (WebCore::GraphicsContext::platformDestroy): 15 (WebCore::GraphicsContext::platformContext): 16 1 17 2011-07-08 Jeffrey Pfau <jpfau@apple.com> 2 18 -
trunk/Source/WebCore/platform/graphics/GraphicsContext.h
r90406 r90661 80 80 namespace WebCore { 81 81 class PlatformContextSkia; 82 typedef PlatformContextSkia GraphicsContextPlatformPrivate; 82 83 } 83 84 typedef WebCore::PlatformContextSkia PlatformGraphicsContext; … … 121 122 class Font; 122 123 class Generator; 124 #if !USE(SKIA) 123 125 class GraphicsContextPlatformPrivate; 126 #endif 124 127 class ImageBuffer; 125 128 class IntRect; -
trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
r89366 r90661 37 37 #include "Gradient.h" 38 38 #include "GraphicsContextGPU.h" 39 #include "GraphicsContextPlatformPrivate.h"40 39 #include "ImageBuffer.h" 41 40 #include "IntRect.h" … … 227 226 void GraphicsContext::platformInit(PlatformGraphicsContext* gc) 228 227 { 229 m_data = new GraphicsContextPlatformPrivate(gc); 230 setPaintingDisabled(!gc || !platformContext()->canvas()); 228 // the caller owns the gc 229 m_data = gc; 230 setPaintingDisabled(!gc || !gc->canvas()); 231 231 } 232 232 233 233 void GraphicsContext::platformDestroy() 234 234 { 235 delete m_data;236 235 } 237 236 … … 239 238 { 240 239 ASSERT(!paintingDisabled()); 241 return m_data ->context();240 return m_data; 242 241 } 243 242
Note:
See TracChangeset
for help on using the changeset viewer.