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

Issue 1410593002: Use common display initialization logic for Unix (Closed)

Created:
5 years, 2 months ago by joshua.litt
Modified:
4 years, 11 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@vbnvpr
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use common display initialization logic for Unix BUG=skia:

Patch Set 1 #

Patch Set 2 : minor tidy #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -94 lines) Patch
M gyp/gpu.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M gyp/views.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A src/gpu/gl/glx/GrNativeDisplay_glx.h View 1 chunk +20 lines, -0 lines 3 comments Download
A src/gpu/gl/glx/GrNativeDisplay_glx.cpp View 1 chunk +65 lines, -0 lines 5 comments Download
M src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp View 8 chunks +13 lines, -56 lines 1 comment Download
M src/views/unix/SkOSWindow_Unix.cpp View 1 3 chunks +33 lines, -38 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 4 (1 generated)
joshualitt
This is a baby step towards centralized GLContextCreation
5 years, 2 months ago (2015-10-15 20:03:29 UTC) #2
bsalomon
https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNativeDisplay_glx.h File src/gpu/gl/glx/GrNativeDisplay_glx.h (right): https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNativeDisplay_glx.h#newcode14 src/gpu/gl/glx/GrNativeDisplay_glx.h:14: namespace GrNativeDisplay { Wondering why a namespace and generic ...
5 years, 2 months ago (2015-10-15 20:55:27 UTC) #3
robertphillips
5 years, 2 months ago (2015-10-16 14:54:41 UTC) #4
https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
File src/gpu/gl/glx/GrNativeDisplay_glx.cpp (right):

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
src/gpu/gl/glx/GrNativeDisplay_glx.cpp:14: 
const int* visualAttribs ?

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
src/gpu/gl/glx/GrNativeDisplay_glx.cpp:16: SkASSERT(visualAttribs && display &&
bestConfig);
glxMajor, glxMinor ?

Do we even need the glx ?

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
src/gpu/gl/glx/GrNativeDisplay_glx.cpp:37: //SkDebugf("Getting
XVisualInfos.\n");
bestFBC, maxNumSamples ?

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
src/gpu/gl/glx/GrNativeDisplay_glx.cpp:43: if (vi) {
sampleBuffers ?

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
src/gpu/gl/glx/GrNativeDisplay_glx.cpp:51: 
add {} to this ?

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
File src/gpu/gl/glx/GrNativeDisplay_glx.h (right):

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
src/gpu/gl/glx/GrNativeDisplay_glx.h:8: 
GrNativeDisplay_glx_DEFINED ?

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/GrNative...
src/gpu/gl/glx/GrNativeDisplay_glx.h:15: 
// Iterate through all the configs compatible with 'visualAttribs' and return
// the best in 'bestConfig'. In this case best means supporting the most
// MSAA samples.

?

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/SkCreate...
File src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp (right):

https://codereview.chromium.org/1410593002/diff/20001/src/gpu/gl/glx/SkCreate...
src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp:80: // Get a matching FB config
visualAttribs ?
static const ?

https://codereview.chromium.org/1410593002/diff/20001/src/views/unix/SkOSWind...
File src/views/unix/SkOSWindow_Unix.cpp (right):

https://codereview.chromium.org/1410593002/diff/20001/src/views/unix/SkOSWind...
src/views/unix/SkOSWindow_Unix.cpp:87: 
static const int attrs[] ?

https://codereview.chromium.org/1410593002/diff/20001/src/views/unix/SkOSWind...
src/views/unix/SkOSWindow_Unix.cpp:90: GLX_DOUBLEBUFFER, true,
Don't we need these stencil settings in the other location too ?

https://codereview.chromium.org/1410593002/diff/20001/src/views/unix/SkOSWind...
src/views/unix/SkOSWindow_Unix.cpp:115: if (info) {
Shouldn't this be requestedMSAASampleCount ?

Powered by Google App Engine
This is Rietveld 408576698