Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Issue 640283004: Refactor SkGLContext to be actually extendable (Closed)

Created:
6 years, 2 months ago by Kimmo Kinnunen
Modified:
6 years, 2 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org, humper
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Refactor SkGLContext to be actually extendable Refactor SkGLContext to be actually extendable. Before, non-trivial subclass would need to destroy the GL connection upon running the destructor. However, the base class would run GL commands in its own destructor (with destroyed GL connection) Refactor so that SkGLContext subclass object creation is completely done by the factory function. If the factory function returns a non-NULL ptr, it means the context is usable. The destruction is done with the destructor instead of virtual function called upon destruction. Make the destructors not to call virtual functions, for clarity. Remove custom 1x1 FBO setup code from the base class. It appears not to be used anymore. BUG=skia:2992 Committed: https://skia.googlesource.com/skia/+/30bc88ccd524c0372fd2f8f79190ea4b81685beb

Patch Set 1 #

Patch Set 2 : fix windows #

Patch Set 3 : indent #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : nacl #

Patch Set 7 : win compile fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -515 lines) Patch
M include/gpu/GrContextFactory.h View 1 1 chunk +9 lines, -11 lines 0 comments Download
M include/gpu/gl/SkANGLEGLContext.h View 1 2 3 4 1 chunk +15 lines, -8 lines 0 comments Download
M include/gpu/gl/SkDebugGLContext.h View 1 2 3 4 1 chunk +9 lines, -7 lines 0 comments Download
M include/gpu/gl/SkGLContext.h View 1 2 3 4 3 chunks +9 lines, -32 lines 0 comments Download
M include/gpu/gl/SkMesaGLContext.h View 1 2 3 4 1 chunk +15 lines, -7 lines 0 comments Download
M include/gpu/gl/SkNullGLContext.h View 1 2 3 4 1 chunk +15 lines, -8 lines 0 comments Download
M src/gpu/gl/SkGLContext.cpp View 1 chunk +2 lines, -122 lines 0 comments Download
M src/gpu/gl/SkNullGLContext.cpp View 1 chunk +8 lines, -6 lines 0 comments Download
M src/gpu/gl/angle/SkANGLEGLContext.cpp View 1 2 2 chunks +31 lines, -34 lines 0 comments Download
M src/gpu/gl/debug/SkDebugGLContext.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp View 1 2 3 4 4 chunks +42 lines, -45 lines 0 comments Download
M src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp View 1 2 3 4 7 chunks +57 lines, -50 lines 0 comments Download
M src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm View 1 2 3 4 4 chunks +29 lines, -25 lines 0 comments Download
M src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp View 1 2 3 4 4 chunks +34 lines, -32 lines 0 comments Download
M src/gpu/gl/mesa/SkMesaGLContext.cpp View 4 chunks +32 lines, -31 lines 0 comments Download
M src/gpu/gl/nacl/SkCreatePlatformGLContext_nacl.cpp View 1 2 3 4 5 1 chunk +1 line, -47 lines 0 comments Download
M src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp View 1 2 3 4 5 6 7 chunks +45 lines, -42 lines 0 comments Download
M tests/GLInterfaceValidationTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/timer/GpuTimer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Kimmo Kinnunen
Sorry to dwell on this still.. Did I misunderstand the 1x1 FBO that SkGLContext creates?
6 years, 2 months ago (2014-10-14 12:44:10 UTC) #2
bsalomon
On 2014/10/14 12:44:10, Kimmo Kinnunen wrote: > Sorry to dwell on this still.. > > ...
6 years, 2 months ago (2014-10-14 14:10:08 UTC) #3
Kimmo Kinnunen
On 2014/10/14 14:10:08, bsalomon wrote: > On 2014/10/14 12:44:10, Kimmo Kinnunen wrote: > > Sorry ...
6 years, 2 months ago (2014-10-15 05:24:01 UTC) #4
bsalomon
On 2014/10/15 05:24:01, Kimmo Kinnunen wrote: > On 2014/10/14 14:10:08, bsalomon wrote: > > On ...
6 years, 2 months ago (2014-10-15 14:18:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640283004/100001
6 years, 2 months ago (2014-10-16 04:56:52 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/71)
6 years, 2 months ago (2014-10-16 05:02:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640283004/120001
6 years, 2 months ago (2014-10-16 05:57:59 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 06:03:59 UTC) #12
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as 30bc88ccd524c0372fd2f8f79190ea4b81685beb

Powered by Google App Engine
This is Rietveld 408576698