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

Unified Diff: cc/output/shader.cc

Issue 1065463002: cc: Remove GLC macro (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/gl_renderer.cc ('k') | cc/output/static_geometry_binding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/shader.cc
diff --git a/cc/output/shader.cc b/cc/output/shader.cc
index 464c5081103176c902594dc5c4972ef22363bfff..d3d5148745c4b82cf5a0aca772674d202e4a47f0 100644
--- a/cc/output/shader.cc
+++ b/cc/output/shader.cc
@@ -8,8 +8,9 @@
#include "base/basictypes.h"
#include "base/logging.h"
-#include "cc/output/gl_renderer.h" // For the GLC() macro.
#include "gpu/command_buffer/client/gles2_interface.h"
+#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/size.h"
template <size_t size>
std::string StripLambda(const char(&shader)[size]) {
@@ -96,9 +97,8 @@ TexCoordPrecision TexCoordPrecisionRequired(GLES2Interface* context,
// everywhere.
GLint range[2] = {14, 14};
GLint precision = 10;
- GLC(context,
- context->GetShaderPrecisionFormat(
- GL_FRAGMENT_SHADER, GL_MEDIUM_FLOAT, range, &precision));
+ context->GetShaderPrecisionFormat(GL_FRAGMENT_SHADER, GL_MEDIUM_FLOAT,
+ range, &precision);
*highp_threshold_cache = 1 << precision;
}
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/output/static_geometry_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698