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

Unified Diff: cc/output/texture_copier.h

Issue 12665005: cc: Use highp precision for texture coords if available and needed (Closed) Base URL: http://git.chromium.org/chromium/src.git@highp2
Patch Set: rebase after all dependencies landed Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/software_renderer_unittest.cc ('k') | cc/output/texture_copier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/texture_copier.h
diff --git a/cc/output/texture_copier.h b/cc/output/texture_copier.h
index ad037babfb47887d12f6aec89f42d3d752f00c38..9b958bce9b9036833660d414c1ee38d07c00e9e3 100644
--- a/cc/output/texture_copier.h
+++ b/cc/output/texture_copier.h
@@ -38,9 +38,11 @@ class CC_EXPORT AcceleratedTextureCopier : public TextureCopier {
public:
static scoped_ptr<AcceleratedTextureCopier> Create(
WebKit::WebGraphicsContext3D* context,
- bool using_bind_uniforms) {
+ bool using_bind_uniforms,
+ int highp_threshold_min) {
return make_scoped_ptr(
- new AcceleratedTextureCopier(context, using_bind_uniforms));
+ new AcceleratedTextureCopier(
+ context, using_bind_uniforms, highp_threshold_min));
}
virtual ~AcceleratedTextureCopier();
@@ -49,7 +51,8 @@ class CC_EXPORT AcceleratedTextureCopier : public TextureCopier {
protected:
AcceleratedTextureCopier(WebKit::WebGraphicsContext3D* context,
- bool using_bind_uniforms);
+ bool using_bind_uniforms,
+ int highp_threshold_min);
private:
typedef ProgramBinding<VertexShaderPosTexIdentity, FragmentShaderRGBATex>
@@ -59,7 +62,9 @@ class CC_EXPORT AcceleratedTextureCopier : public TextureCopier {
GLuint fbo_;
GLuint position_buffer_;
scoped_ptr<BlitProgram> blit_program_;
+ scoped_ptr<BlitProgram> blit_program_highp_;
bool using_bind_uniforms_;
+ int highp_threshold_min_;
DISALLOW_COPY_AND_ASSIGN(AcceleratedTextureCopier);
};
« no previous file with comments | « cc/output/software_renderer_unittest.cc ('k') | cc/output/texture_copier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698