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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/LayerTilerChromium.h

Issue 7477025: Merge 91720 - [Chromium] Use correct vertex shader when rendering video layer. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/chromium/ShaderChromium.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void setLayerPosition(const IntPoint& position); 68 void setLayerPosition(const IntPoint& position);
69 // Change the tile size. This may invalidate all the existing tiles. 69 // Change the tile size. This may invalidate all the existing tiles.
70 void setTileSize(const IntSize& size); 70 void setTileSize(const IntSize& size);
71 71
72 bool skipsDraw() const { return m_skipsDraw; } 72 bool skipsDraw() const { return m_skipsDraw; }
73 73
74 // Reserves all existing and valid tile textures to protect them from being 74 // Reserves all existing and valid tile textures to protect them from being
75 // recycled by the texture manager. 75 // recycled by the texture manager.
76 void protectTileTextures(const IntRect& contentRect); 76 void protectTileTextures(const IntRect& contentRect);
77 77
78 typedef ProgramBinding<VertexShaderPosTexTransform, FragmentShaderRGBATexAlp ha> Program; 78 typedef ProgramBinding<VertexShaderQuad, FragmentShaderRGBATexAlpha> Program ;
79 // Shader program that swaps red and blue components of texture. 79 // Shader program that swaps red and blue components of texture.
80 // Used when texture format does not match native color format. 80 // Used when texture format does not match native color format.
81 typedef ProgramBinding<VertexShaderPosTexTransform, FragmentShaderRGBATexSwi zzleAlpha> ProgramSwizzle; 81 typedef ProgramBinding<VertexShaderQuad, FragmentShaderRGBATexSwizzleAlpha> ProgramSwizzle;
82 82
83 // If this tiler has exactly one tile, return its texture. Otherwise, null. 83 // If this tiler has exactly one tile, return its texture. Otherwise, null.
84 LayerTexture* getSingleTexture(); 84 LayerTexture* getSingleTexture();
85 85
86 private: 86 private:
87 LayerTilerChromium(LayerRendererChromium*, const IntSize& tileSize, BorderTe xelOption); 87 LayerTilerChromium(LayerRendererChromium*, const IntSize& tileSize, BorderTe xelOption);
88 88
89 class Tile : public RefCounted<Tile> { 89 class Tile : public RefCounted<Tile> {
90 WTF_MAKE_NONCOPYABLE(Tile); 90 WTF_MAKE_NONCOPYABLE(Tile);
91 public: 91 public:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 TilingData m_tilingData; 171 TilingData m_tilingData;
172 172
173 LayerRendererChromium* m_layerRenderer; 173 LayerRendererChromium* m_layerRenderer;
174 }; 174 };
175 175
176 } 176 }
177 177
178 #endif // USE(ACCELERATED_COMPOSITING) 178 #endif // USE(ACCELERATED_COMPOSITING)
179 179
180 #endif 180 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/chromium/ShaderChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698