-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
171a742
commit fa6acac
Showing
388 changed files
with
17,648 additions
and
1,384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | ||
* Copyright (C) 2007 Justin Haygood ([email protected]) | ||
* Copyright (c) 2010-2016 ACCESS CO., LTD. All rights reserved. | ||
* Copyright (c) 2010-2017 ACCESS CO., LTD. All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
|
@@ -159,6 +159,8 @@ removeThreadIdentifier(ThreadIdentifier id) | |
int waitForThreadCompletion(ThreadIdentifier threadID) | ||
{ | ||
void* instance = getThreadInstance(threadID); | ||
if (!instance) | ||
return 0; | ||
int ret = wkcThreadJoinPeer(instance, 0); | ||
removeThreadIdentifier(threadID); | ||
return ret; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2007 Kevin Ollivier <[email protected]> | ||
* Copyright (c) 2010-2016 ACCESS CO., LTD. All rights reserved. | ||
* Copyright (c) 2010-2017 ACCESS CO., LTD. All rights reserved. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Library General Public | ||
|
@@ -1220,16 +1220,52 @@ Color RenderThemeWKC::platformInactiveSelectionForegroundColor() const | |
|
||
int RenderThemeWKC::popupInternalPaddingLeft(RenderStyle& style) const | ||
{ | ||
return cPopupInternalPaddingLeft; | ||
int width = 0; | ||
|
||
switch (style.appearance()) { | ||
case MenulistPart: // default | ||
width += 1; | ||
// fall through | ||
case MenulistButtonPart: | ||
width += cPopupInternalPaddingLeft; | ||
break; | ||
case ButtonPart: | ||
width = 1; | ||
break; | ||
default: | ||
break; | ||
} | ||
|
||
return width; | ||
} | ||
|
||
int RenderThemeWKC::popupInternalPaddingRight(RenderStyle& style) const | ||
{ | ||
unsigned int w=0, h=0; | ||
float scale = wkcStockImageGetImageScalePeer(); | ||
wkcStockImageGetSizePeer(WKC_IMAGE_MENU_LIST_BUTTON, &w, &h); | ||
w *= scale; | ||
return w + cPopupInternalPaddingRight; | ||
int width = 0; | ||
|
||
switch (style.appearance()) { | ||
case MenulistPart: // default | ||
width += 1; | ||
// fall through | ||
case MenulistButtonPart: | ||
{ | ||
unsigned int w=0, h=0; | ||
float scale = wkcStockImageGetImageScalePeer(); | ||
wkcStockImageGetSizePeer(WKC_IMAGE_MENU_LIST_BUTTON, &w, &h); | ||
w *= scale; | ||
|
||
width += cPopupInternalPaddingRight; | ||
width += w; | ||
} | ||
break; | ||
case ButtonPart: | ||
width = 1; | ||
break; | ||
default: | ||
break; | ||
} | ||
|
||
return width; | ||
} | ||
|
||
int RenderThemeWKC::popupInternalPaddingTop(RenderStyle& style) const | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Copyright (C) 2011 Google Inc. All rights reserved. | ||
* Copyright (C) 2012 ChangSeok Oh <[email protected]> | ||
* Copyright (C) 2012 Research In Motion Limited. All rights reserved. | ||
* Copyright (c) 2011-2015 ACCESS CO., LTD. All rights reserved. | ||
* Copyright (c) 2011-2017 ACCESS CO., LTD. All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
|
@@ -252,15 +252,19 @@ GraphicsContext3DPrivate::create(GraphicsContext3D* parent, GraphicsContext3D::A | |
attrs.preserveDrawingBuffer, | ||
attrs.noExtensions, | ||
attrs.shareResources, | ||
attrs.preferDiscreteGPU, | ||
attrs.preferLowPowerToHighPerformance, | ||
attrs.forceSoftwareRenderer, | ||
attrs.failIfMajorPerformanceCaveat, | ||
attrs.useGLES3, | ||
attrs.devicePixelRatio, | ||
}; | ||
|
||
GraphicsContext3DPrivate* v = new GraphicsContext3DPrivate(); | ||
|
||
std::unique_ptr<GraphicsContext3DPrivate> self; | ||
self.reset(v); | ||
|
||
self->m_peer = wkcGLCreateContextPeer(&ga, (void *)hostwindow); | ||
self->m_peer = wkcGLCreateContextPeer(&ga, (void *)hostwindow, self->m_layer); | ||
if (!self->m_peer) { | ||
return nullptr; | ||
} | ||
|
@@ -2373,14 +2377,21 @@ GraphicsContext3D::vertexAttribDivisor(GC3Duint index, GC3Duint divisor) | |
|
||
#include "GraphicsContext3D.h" | ||
|
||
#include "Extensions3D.h" | ||
#if USE(OPENGL_ES_2) | ||
#include "Extensions3DOpenGLES.h" | ||
#else | ||
#include "Extensions3DOpenGL.h" | ||
#endif | ||
|
||
namespace WebCore { | ||
|
||
class GraphicsContext3DPrivate | ||
{ | ||
public: | ||
static PassOwnPtr<GraphicsContext3DPrivate> create(GraphicsContext3D::Attributes& attrs, HostWindow* hostwindow, bool in_direct) | ||
static std::unique_ptr<GraphicsContext3DPrivate> create(GraphicsContext3D::Attributes& attrs, HostWindow* hostwindow, bool in_direct) | ||
{ | ||
return 0; | ||
return nullptr; | ||
} | ||
~GraphicsContext3DPrivate() {} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.