/external/chromium_org/gpu/command_buffer/service/ |
shader_manager.h | 21 // This is used to keep the source code for a shader. This is because in order 25 class GPU_EXPORT Shader : public base::RefCounted<Shader> { 127 friend class base::RefCounted<Shader>; 130 Shader(GLuint service_id, GLenum shader_type); 131 ~Shader(); 139 // The shader this Shader is tracking. 141 // Type of shader - GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. 147 // The shader source as passed to glShaderSource [all...] |
shader_manager.cc | 15 Shader::Shader(GLuint service_id, GLenum shader_type) 22 Shader::~Shader() { 25 void Shader::IncUseCount() { 29 void Shader::DecUseCount() { 34 void Shader::MarkAsDeleted() { 39 void Shader::SetStatus( 61 const Shader::VariableInfo* 62 Shader::GetAttribInfo 102 Shader* shader = shaders_.begin()->second.get(); local [all...] |
program_cache.h | 20 class Shader; 54 Shader* shader_a, 56 Shader* shader_b, 65 const Shader* shader_a, 67 const Shader* shader_b, 85 // called by implementing class after a shader was successfully cached 89 void ComputeShaderHash(const std::string& shader,
|
mocks.h | 88 MOCK_METHOD1(Translate, bool(const char* shader)); 106 Shader* shader_a, 108 Shader* shader_b, 115 const Shader* shader_a, 117 const Shader* shader_b,
|
shader_manager_unittest.cc | 48 // Check we can create shader. 49 Shader* info0 = manager_.CreateShader( 51 // Check shader got created. 53 Shader* shader1 = manager_.GetShader(kClient1Id); 55 // Check we get nothing for a non-existent shader. 57 // Check we can't get the shader after we remove it. 66 // Check we can create shader. 67 Shader* shader1 = manager_.CreateShader( 69 // Check shader got created. 86 // Check we can create shader [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ShaderTest.java | 22 import android.graphics.Shader; 27 new Shader(); 36 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); local 39 shader.setLocalMatrix(m); 40 assertFalse(shader.getLocalMatrix(m)); 42 shader.setLocalMatrix(null); 43 assertFalse(shader.getLocalMatrix(m)) [all...] |
Shader_TileModeTest.java | 20 import android.graphics.Shader; 21 import android.graphics.Shader.TileMode;
|
/frameworks/base/graphics/java/android/graphics/ |
Shader.java | 20 * Shader is the based class for objects that return horizontal spans of colors 21 * during drawing. A subclass of Shader is installed in a Paint calling 22 * paint.setShader(shader). After that any object (other than a bitmap) that is 23 * drawn with that paint will get its color(s) from the shader. 25 public class Shader { 41 * replicate the edge color if the shader draws outside of its 46 * repeat the shader's image horizontally and vertically 50 * repeat the shader's image horizontally and vertically, alternating 62 * Return true if the shader has a non-identity local matrix. 63 * @param localM If not null, it is set to the shader's local matrix [all...] |
ComposeShader.java | 19 /** A subclass of shader that returns the composition of two other shaders, combined by 22 public class ComposeShader extends Shader { 39 private final Shader mShaderA; 41 private final Shader mShaderB; 43 /** Create a new compose shader, given shaders A, B, and a combining mode. 44 When the mode is applied, it will be given the result from shader A as its 45 "dst", and the result from shader B as its "src". 46 @param shaderA The colors from this shader are seen as the "dst" by the mode 47 @param shaderB The colors from this shader are seen as the "src" by the mode 51 public ComposeShader(Shader shaderA, Shader shaderB, Xfermode mode) [all...] |
BitmapShader.java | 20 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or 23 public class BitmapShader extends Shader { 35 * Call this to create a new shader that will draw with a bitmap. 37 * @param bitmap The bitmap to use inside the shader 54 protected Shader copy() {
|
/external/chromium_org/mojo/apps/js/bindings/gl/ |
context.h | 24 typedef Opaque Shader; 35 static gin::Handle<Shader> CreateShader(const gin::Arguments& arguments, 37 static void ShaderSource(gin::Handle<Shader> shader, 40 gin::Handle<Shader> shader);
|
context.cc | 42 gin::Handle<Shader> Context::CreateShader(const gin::Arguments& args, 44 gin::Handle<Shader> result; 52 void Context::ShaderSource(gin::Handle<Shader> shader, 55 glShaderSource(shader->value(), 1, &source_chars, NULL); 59 gin::Handle<Shader> shader) { 60 glCompileShader(shader->value()); 62 glGetShaderiv(shader->value(), GL_COMPILE_STATUS, &compiled); 64 // Or should |shader| do it when it is destroyed [all...] |
/external/chromium_org/third_party/WebKit/Source/core/fetch/ |
ShaderResource.h | 53 DEFINE_RESOURCE_TYPE_CASTS(Shader);
|
ShaderResource.cpp | 40 : Resource(resourceRequest, Shader) 41 , m_decoder(TextResourceDecoder::create("application/shader"))
|
/external/chromium_org/third_party/angle/src/libGLESv2/ |
Shader.cpp | 8 // Shader.cpp: Implements the gl::Shader class and its derived classes 9 // VertexShader and FragmentShader. Implements GL shader objects and related 12 #include "libGLESv2/Shader.h" 22 void *Shader::mFragmentCompiler = NULL; 23 void *Shader::mVertexCompiler = NULL; 25 Shader::Shader(ResourceManager *manager, const rx::Renderer *renderer, GLuint handle) 39 Shader::~Shader() [all...] |
Shader.h | 7 // Shader.h: Defines the abstract gl::Shader class and its concrete derived 8 // classes VertexShader and FragmentShader. Implements GL shader objects and 51 class Shader 56 Shader(ResourceManager *manager, const rx::Renderer *renderer, GLuint handle); 58 virtual ~Shader(); 116 DISALLOW_COPY_AND_ASSIGN(Shader); 121 unsigned int mRefCount; // Number of program objects this shader is attached to 122 bool mDeleteStatus; // Flag to indicate that the shader can be deleted when no longer in use 148 class VertexShader : public Shader [all...] |
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
ResourceModifiers.java | 28 import android.graphics.Shader; 63 mRepeatShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, 64 Shader.TileMode.REPEAT); 66 mTranslatedShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, 67 Shader.TileMode.REPEAT); 73 mScaledShader = new BitmapShader(mBitmap, Shader.TileMode.MIRROR, 74 Shader.TileMode.MIRROR); 80 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); 88 Color.BLUE, Color.RED, Shader.TileMode.CLAMP); 91 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientStopsActivity.java | 25 import android.graphics.Shader; 48 colors, positions, Shader.TileMode.CLAMP); 58 colors, positions, Shader.TileMode.CLAMP); 68 colors, positions, Shader.TileMode.CLAMP); 77 colors, null, Shader.TileMode.CLAMP); 85 colors, null, Shader.TileMode.REPEAT); 93 colors, null, Shader.TileMode.MIRROR); 101 colors, null, Shader.TileMode.CLAMP); 109 colors, null, Shader.TileMode.CLAMP); 117 colors, null, Shader.TileMode.CLAMP) [all...] |
ShadersActivity.java | 29 import android.graphics.Shader; 68 mRepeatShader = new BitmapShader(mTexture, Shader.TileMode.REPEAT, 69 Shader.TileMode.REPEAT); 71 mTranslatedShader = new BitmapShader(mTexture, Shader.TileMode.REPEAT, 72 Shader.TileMode.REPEAT); 78 mScaledShader = new BitmapShader(mTexture, Shader.TileMode.MIRROR, 79 Shader.TileMode.MIRROR); 85 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); 93 Color.BLUE, Color.MAGENTA, Shader.TileMode.CLAMP); 96 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR) [all...] |
BigGradientActivity.java | 24 import android.graphics.Shader; 45 0xff333333, Shader.TileMode.CLAMP));
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Patterns.java | 54 private final Shader mShader1; 55 private final Shader mShader2; 74 mShader1 = new BitmapShader(makeBitmap1(), Shader.TileMode.REPEAT, 75 Shader.TileMode.REPEAT); 76 mShader2 = new BitmapShader(makeBitmap2(), Shader.TileMode.REPEAT, 77 Shader.TileMode.REPEAT);
|
ShapeDrawable1.java | 38 private static Shader makeSweep() { 44 private static Shader makeLinear() { 47 null, Shader.TileMode.MIRROR); 50 private static Shader makeTiling() { 55 return new BitmapShader(bm, Shader.TileMode.REPEAT, 56 Shader.TileMode.REPEAT);
|
/external/jmonkeyengine/engine/src/core/com/jme3/renderer/ |
Renderer.java | 40 import com.jme3.shader.Shader; 41 import com.jme3.shader.Shader.ShaderSource; 116 * shader based. 124 * is shader based. 161 * Does nothing if the renderer is shader based. 170 * Sets the shader to use for rendering. 171 * If the shader has not been uploaded yet, it is compiled 173 * uniform data is updated and the shader is set [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
BitmapDrawable.java | 30 import android.graphics.Shader; 338 * @return {@link Shader.TileMode#CLAMP} if the bitmap does not repeat, 339 * {@link Shader.TileMode#REPEAT} or {@link Shader.TileMode#MIRROR} otherwise. 341 public Shader.TileMode getTileModeX() { 348 * @return {@link Shader.TileMode#CLAMP} if the bitmap does not repeat, 349 * {@link Shader.TileMode#REPEAT} or {@link Shader.TileMode#MIRROR} otherwise. 351 public Shader.TileMode getTileModeY() { 357 * does not repeat its bitmap. Using {@link Shader.TileMode#REPEAT} o 441 Shader shader = mBitmapState.mPaint.getShader(); local 475 Shader shader = state.mPaint.getShader(); local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowPaint.java | 5 import android.graphics.Shader; 27 private Shader shader; field in class:ShadowPaint 47 public Shader setShader(Shader shader) { 48 this.shader = shader; 49 return shader; 64 public Shader getShader() [all...] |