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

Unified Diff: cc/output/gl_renderer.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 on pending Chromification https://codereview.chromium.org/13004003 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
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index e6a668d2086386442426039228e7ef1553f0650e..df0b6932bdd3d43681ded76caacb5d64de7f93ad 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -261,17 +261,26 @@ class CC_EXPORT GLRenderer :
const TileProgramSwizzleAA* GetTileProgramSwizzleAA();
const TileCheckerboardProgram* GetTileCheckerboardProgram();
- const RenderPassProgram* GetRenderPassProgram();
- const RenderPassProgramAA* GetRenderPassProgramAA();
- const RenderPassMaskProgram* GetRenderPassMaskProgram();
- const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA();
-
- const TextureProgram* GetTextureProgram();
- const TextureProgramFlip* GetTextureProgramFlip();
- const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram();
-
- const VideoYUVProgram* GetVideoYUVProgram();
- const VideoStreamTextureProgram* GetVideoStreamTextureProgram();
+ const RenderPassProgram* GetRenderPassProgram(
+ TexCoordPrecision precision);
+ const RenderPassProgramAA* GetRenderPassProgramAA(
+ TexCoordPrecision precision);
+ const RenderPassMaskProgram* GetRenderPassMaskProgram(
+ TexCoordPrecision precision);
+ const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA(
+ TexCoordPrecision precision);
+
+ const TextureProgram* GetTextureProgram(
+ TexCoordPrecision precision);
+ const TextureProgramFlip* GetTextureProgramFlip(
+ TexCoordPrecision precision);
+ const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram(
+ TexCoordPrecision precision);
+
+ const VideoYUVProgram* GetVideoYUVProgram(
+ TexCoordPrecision precision);
+ const VideoStreamTextureProgram* GetVideoStreamTextureProgram(
+ TexCoordPrecision precision);
const DebugBorderProgram* GetDebugBorderProgram();
const SolidColorProgram* GetSolidColorProgram();
@@ -290,13 +299,25 @@ class CC_EXPORT GLRenderer :
scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_;
scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_;
+ scoped_ptr<RenderPassProgram> render_pass_program_highp_;
+ scoped_ptr<RenderPassProgramAA> render_pass_program_aa_highp_;
+ scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_highp_;
+ scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_highp_;
+
scoped_ptr<TextureProgram> texture_program_;
scoped_ptr<TextureProgramFlip> texture_program_flip_;
scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_;
+ scoped_ptr<TextureProgram> texture_program_highp_;
+ scoped_ptr<TextureProgramFlip> texture_program_flip_highp_;
+ scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_highp_;
+
scoped_ptr<VideoYUVProgram> video_yuv_program_;
scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_;
+ scoped_ptr<VideoYUVProgram> video_yuv_program_highp_;
+ scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_highp_;
+
scoped_ptr<DebugBorderProgram> debug_border_program_;
scoped_ptr<SolidColorProgram> solid_color_program_;
scoped_ptr<SolidColorProgramAA> solid_color_program_aa_;

Powered by Google App Engine
This is Rietveld 408576698