HomeSort by relevance Sort by last modified time
    Searched full:stencil (Results 1 - 25 of 128) sorted by null

1 2 3 4 5 6

  /frameworks/base/libs/hwui/
Stencil.h 32 // Stencil buffer management
35 class ANDROID_API Stencil {
37 Stencil();
40 * Returns the desired size for the stencil buffer. If the returned value
41 * is 0, then no stencil buffer is required.
46 * Returns the smallest stencil format accepted by render buffers.
51 * Clears the stencil buffer.
56 * Enables stencil test. When the stencil test is enabled the stencil
    [all...]
Stencil.cpp 19 #include "Stencil.h"
34 Stencil::Stencil(): mState(kDisabled) {
37 uint32_t Stencil::getStencilSize() {
41 GLenum Stencil::getSmallestStencilFormat() {
53 void Stencil::clear() {
58 void Stencil::enableTest() {
69 void Stencil::enableWrite() {
80 void Stencil::enableDebugTest(GLint value, bool greater) {
88 void Stencil::enableDebugWrite()
    [all...]
Layer.cpp 46 stencil = NULL;
102 if (stencil) {
103 stencil->bind();
104 stencil->resize(desiredWidth, desiredHeight);
116 if (stencil) {
123 Caches::getInstance().renderBufferCache.put(stencil);
124 stencil = NULL;
Layer.h 61 * buffer (stencil for instance.)
162 this->stencil = renderBuffer;
164 GL_RENDERBUFFER, stencil->getName());
166 ALOGE("The specified render buffer is not a stencil buffer");
171 return stencil;
231 if (stencil) {
232 stencil->bind();
330 * The render buffer used as the stencil buffer.
332 RenderBuffer* stencil; member in struct:android::uirenderer::Layer
  /sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/
GLStateType.java 83 STENCIL("Stencil"),
85 STENCIL_FUNC("Front Stencil Function"),
86 STENCIL_VALUE_MASK("Front Stencil Mask"),
87 STENCIL_REF("Front Stencil Reference Value"),
88 STENCIL_FAIL("Front Stencil Fail Action"),
89 STENCIL_PASS_DEPTH_FAIL("Front stencil depth buffer fail action"),
90 STENCIL_PASS_DEPTH_PASS("Front stencil depth buffer pass action"),
91 STENCIL_BACK_FUNC("Back stencil function"),
92 STENCIL_BACK_VALUE_MASK("Back stencil mask")
    [all...]
  /external/skia/include/gpu/
GrPathRendererChain.h 51 kStencilOnly_DrawType, // draw just to the stencil buffer
52 kStencilAndColor_DrawType, // draw the stencil and color buffer, no AA
53 kStencilAndColorAntiAlias_DrawType // draw the stencil and color buffer, with partial
57 is drawing the path to the stencil buffer then stencilSupport can be used to determine
58 whether the path can be rendered with arbitrary stencil rules or not. See comments on
  /external/skia/src/gpu/
GrStencil.h 17 * Gr uses the stencil buffer to implement complex clipping inside the
18 * GrDrawTarget class. The GrDrawTarget makes a subset of the stencil buffer
23 * When code outside the GrDrawTarget class uses the stencil buffer the contract
26 * > Normal stencil funcs allow the client to pass / fail regardless of the
38 * Determines which pixels pass / fail the stencil test.
39 * Stencil test passes if (ref & mask) FUNC (stencil & mask) is true
52 // stencil buffer in the high bits that
55 // stencil funcs test against the current
57 // client's stencil bits
    [all...]
GrClipMaskManager.h 38 * mask in the stencil buffer. In the non anti-aliasing case, if the clip
50 * Creates a clip mask if necessary as a stencil buffer or alpha texture
51 * and sets the GrGpu's scissor and stencil state. If the return is false
85 * Informs the helper function adjustStencilParams() about how the stencil
89 // Draw to the clip bit of the stencil buffer
92 // of the stencil buffer.
101 * We may represent the clip as a mask in the stencil buffer or as an alpha
113 // Draws the clip into the stencil buffer
144 // Determines whether it is possible to draw the element to both the stencil buffer and the
162 * updates the GrGpu with stencil settings that account stencil-base
    [all...]
GrPathRenderer.h 50 * A caller may wish to use a path renderer to draw a path into the stencil buffer. However,
51 * the path renderer itself may require use of the stencil buffer. Also a path renderer may
54 * the stencil.
61 * affected by the stencil settings.
62 * 2) kStencilOnly: The path renderer cannot apply arbitrary stencil rules nor shade and stencil
64 * which performs no color writes and writes a non-zero stencil value to pixels
66 * 3) kNoSupport: This path renderer cannot be used to stencil the path.
77 * This function is to get the stencil support for a particular path. The path's fill must
109 * the subclass must respect the stencil settings of the target's draw state
    [all...]
GrClipMaskManager.cpp 105 // sort out what kind of clip mask needs to be created: alpha, stencil,
152 // If MSAA is enabled we can do everything in the stencil buffer.
185 // Either a hard (stencil buffer) clip was explicitly requested or an anti-aliased clip couldn't
188 // clears, InOrderDrawBuffer playbacks) that hit the stencil buffer path. These may be
193 // a stencil mask.
202 // use the stencil clip if we can't represent the clip as a rectangle.
210 // only guarantees that the stencil mask is correct within the bounds it was passed, so we must
211 // use both stencil and scissor test to the bounds for the final draw.
454 // When we use the stencil in the below loop it is important to have this clip installed.
455 // The second pass that zeros the stencil buffer renders the rect maskSpaceIBounds so the firs
    [all...]
GrStencil.cpp 13 // Stencil Rules for Merging user stencil space into clip
16 // between user and clip bits in the stencil depends on the number of stencil
170 // We are looking for stencil values that are all zero. The first pass sets the
171 // clip bit if the stencil is all zeros. The second pass clears the user bits.
191 // Direct to Stencil
197 // this one only works if used right after stencil clip was cleared.
275 // if we make the path renderer go to stencil we always give it a
276 // non-inverted fill and we use the stencil rules on the client->clipbi
    [all...]
GrGpu.h 322 * stencil state to the 3D API in its implementation of flushGraphicsState.
333 * stencil settings should be used in place of those on the GrDrawState.
335 * GrDrawState's stencil settings and stencil clipping.
342 // GrGpu subclass sets clip bit in the stencil buffer. The subclass is
351 // stencil bits used for
383 // Functions used to map clip-respecting stencil tests into normal
384 // stencil funcs supported by GPUs.
413 // The final stencil settings to use as determined by the clip manager.
458 // when GrDrawTarget::stencilPath is called the draw state's current stencil
    [all...]
GrStencilAndCoverPathRenderer.cpp 78 // fill the path, zero out the stencil
91 *drawState->stencil() = kStencilPass;
116 *drawState->stencil() = kInvertedStencilPass;
120 target->drawState()->stencil()->setDisabled();
GrDefaultPathRenderer.cpp 27 // Stencil rules for paths
39 // ok not to check clip b/c stencil pass only wrote inside clip
59 // when we have separate stencil we increment front faces / decrement back faces
60 // when we don't have wrap incr and decr we use the stencil test to simulate
73 // we can't avoid touching the stencil on both passing and
84 // stencil. First we draw the front faces and inc, then we draw the back faces
119 // Color passes are the same whether we use the two-sided stencil or two passes
137 ////// Normal render to stencil
139 // Sometimes the default path renderer can draw a path directly to the stencil
152 #define STENCIL_OFF 0 // Always disable stencil (even when needed
    [all...]
  /external/webkit/Source/WebCore/html/canvas/
WebGLContextAttributes.cpp 80 bool WebGLContextAttributes::stencil() const function in class:WebCore::WebGLContextAttributes
82 return m_attrs.stencil;
85 void WebGLContextAttributes::setStencil(bool stencil)
87 m_attrs.stencil = stencil;
WebGLContextAttributes.h 54 // Whether or not the drawing buffer has a stencil buffer; default=true
55 bool stencil() const;
56 void setStencil(bool stencil);
  /packages/apps/LegacyCamera/src/com/android/camera/panorama/
MosaicRendererSurfaceView.java 51 int depth, int stencil) {
53 initialize(context, translucent, depth, stencil);
56 private void initialize(Context context, boolean translucent, int depth, int stencil) {
58 init(translucent, depth, stencil);
68 private void init(boolean translucent, int depth, int stencil) {
90 translucent ? new ConfigChooser(8, 8, 8, 8, depth, stencil) :
91 new ConfigChooser(5, 6, 5, 0, depth, stencil));
126 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) {
132 mStencilSize = stencil;
  /external/webkit/Source/WebCore/bindings/js/
JSHTMLCanvasElementCustom.cpp 70 Identifier stencil(exec, "stencil");
71 if (jsAttrs->hasProperty(exec, stencil))
72 webGLAttrs->setStencil(jsAttrs->get(exec, stencil).toBoolean(exec));
  /frameworks/base/docs/html/design/downloads/
index.jd 49 <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Fireworks Stencil']);"
50 href="{@docRoot}downloads/design/Android_Design_Fireworks_Stencil_20120814.png">Adobe&reg; Fireworks&reg; PNG Stencil</a>
51 <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Illustrator Stencil']);"
52 href="{@docRoot}downloads/design/Android_Design_Illustrator_Vectors_20120814.ai">Adobe&reg; Illustrator&reg; Stencil</a>
53 <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'OmniGraffle Stencil']);"
54 href="{@docRoot}downloads/design/Android_Design_OmniGraffle_Stencil_20120814.graffle">Omni&reg; OmniGraffle&reg; Stencil</a>
  /external/jmonkeyengine/engine/src/core/com/jme3/material/
RenderState.java 43 * face culling, stencil operations, and much more.
79 * <code>TestFunction</code> specifies the testing function for stencil test
82 * <p>The functions work similarly as described except that for stencil
83 * test function, the reference value given in the stencil command is
84 * the input value while the reference is the value already in the stencil
210 * <code>StencilOperation</code> specifies the stencil operation to use
232 * Replace the value in the stencil buffer with the reference value.
237 * Increment the value in the stencil buffer, clamp once reaching
243 * Increment the value in the stencil buffer and wrap to 0 when
248 * Decrement the value in the stencil buffer and clamp once reaching 0
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/renderer/
ViewPort.java 192 * Check if stencil buffer clearing is enabled.
194 * @return true if stencil buffer clearing is enabled.
203 * Enable or disable clearing of the stencil buffer for this ViewPort.
205 * By default stencil clearing is disabled.
207 * @param clearStencil Enable/disable stencil buffer clearing.
214 * Set the clear flags (color, depth, stencil) in one call.
218 * @param stencil If stencil buffer clearing should be enabled.
224 public void setClearFlags(boolean color, boolean depth, boolean stencil){
227 this.clearStencil = stencil;
    [all...]
  /external/skia/src/gpu/gl/
GrGLCaps.h 32 // stencil, ... as well as those that don't (coverage only). All samples
37 // Color samples are samples that store data values (color, stencil,
118 * Call to note that a color config / stencil format pair passed
128 * Call to check whether color config / stencil format pair has already
165 * Gets an array of legal stencil formats. These formats are not guaranteed
274 // used as a color attachment when a particular stencil format is used
275 // as a stencil attachment.
  /frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/
GL2JNIView.java 65 public GL2JNIView(Context context, boolean translucent, int depth, int stencil) {
67 init(translucent, depth, stencil);
70 private void init(boolean translucent, int depth, int stencil) {
73 new ConfigChooser(8,8,8,8, depth, stencil) :
74 new ConfigChooser(5,6,5,0, depth, stencil));
112 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) {
118 mStencilSize = stencil;
  /frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/
GLPerfView.java 65 public GLPerfView(Context context, boolean translucent, int depth, int stencil) {
67 init(translucent, depth, stencil);
70 private void init(boolean translucent, int depth, int stencil) {
73 new ConfigChooser(8,8,8,8, depth, stencil) :
74 new ConfigChooser(5,6,5,0, depth, stencil));
112 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) {
118 mStencilSize = stencil;
  /frameworks/native/opengl/tests/gldual/src/com/android/gldual/
GLDualGL2View.java 68 public GLDualGL2View(Context context, boolean translucent, int depth, int stencil) {
70 init(translucent, depth, stencil);
73 private void init(boolean translucent, int depth, int stencil) {
76 new ConfigChooser(8,8,8,8, depth, stencil) :
77 new ConfigChooser(5,6,5,0, depth, stencil));
115 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) {
121 mStencilSize = stencil;

Completed in 719 milliseconds

1 2 3 4 5 6