Changeset 121136 in webkit
- Timestamp:
- Jun 24, 2012, 8:40:09 PM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/texmap/TextureMapper.h (modified) (3 diffs)
-
platform/graphics/texmap/TextureMapperGL.cpp (modified) (1 diff)
-
platform/graphics/texmap/TextureMapperGL.h (modified) (1 diff)
-
platform/graphics/texmap/TextureMapperImageBuffer.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r121132 r121136 1 2012-06-24 Simon Hausmann <simon.hausmann@nokia.com> 2 3 [Texmap] Minor cleanup for TextureMapper::accelerationMode() 4 https://bugs.webkit.org/show_bug.cgi?id=89825 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Replace the virtual method with a simple member variable. 9 10 * platform/graphics/texmap/TextureMapper.h: 11 (WebCore::TextureMapper::accelerationMode): 12 (WebCore::TextureMapper::TextureMapper): 13 (TextureMapper): 14 * platform/graphics/texmap/TextureMapperGL.cpp: 15 (WebCore::TextureMapperGL::TextureMapperGL): 16 * platform/graphics/texmap/TextureMapperGL.h: 17 * platform/graphics/texmap/TextureMapperImageBuffer.h: 18 (WebCore::TextureMapperImageBuffer::TextureMapperImageBuffer): 19 1 20 2012-06-24 Mike Lawther <mikelawther@chromium.org> 2 21 -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapper.h
r119098 r121136 129 129 InterpolationQuality imageInterpolationQuality() const { return m_interpolationQuality; } 130 130 TextDrawingModeFlags textDrawingMode() const { return m_textDrawingMode; } 131 virtual AccelerationMode accelerationMode() const = 0;131 AccelerationMode accelerationMode() const { return m_accelerationMode; } 132 132 133 133 virtual void beginPainting(PaintFlags flags = 0) { } … … 140 140 141 141 protected: 142 TextureMapper( )142 TextureMapper(AccelerationMode accelerationMode) 143 143 : m_interpolationQuality(InterpolationDefault) 144 144 , m_textDrawingMode(TextModeFill) 145 , m_accelerationMode(accelerationMode) 145 146 {} 146 147 … … 158 159 Vector<RefPtr<BitmapTexture> > m_texturePool; 159 160 GraphicsContext* m_context; 161 AccelerationMode m_accelerationMode; 160 162 }; 161 163 -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
r120608 r121136 240 240 241 241 TextureMapperGL::TextureMapperGL() 242 : m_data(new TextureMapperGLData) 242 : TextureMapper(OpenGLMode) 243 , m_data(new TextureMapperGLData) 243 244 , m_context(0) 244 245 { -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.h
r119849 r121136 64 64 virtual PassRefPtr<BitmapTexture> createTexture() OVERRIDE; 65 65 virtual GraphicsContext* graphicsContext() OVERRIDE { return m_context; } 66 virtual AccelerationMode accelerationMode() const OVERRIDE { return OpenGLMode; }67 66 virtual void setGraphicsContext(GraphicsContext* context) OVERRIDE { m_context = context; } 68 67 -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperImageBuffer.h
r116834 r121136 58 58 virtual void endClip() OVERRIDE { graphicsContext()->restore(); } 59 59 virtual PassRefPtr<BitmapTexture> createTexture() OVERRIDE { return BitmapTextureImageBuffer::create(); } 60 virtual AccelerationMode accelerationMode() const OVERRIDE { return SoftwareMode; }61 60 62 61 inline GraphicsContext* currentContext() … … 66 65 67 66 private: 67 TextureMapperImageBuffer() 68 : TextureMapper(SoftwareMode) 69 { } 68 70 RefPtr<BitmapTexture> m_currentSurface; 69 71 };
Note:
See TracChangeset
for help on using the changeset viewer.