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

Unified Diff: gpu/command_buffer/service/context_state.h

Issue 2482673002: fix --show-composited-layer-borders on Mac (Closed)
Patch Set: small fix Created 4 years, 1 month 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 | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_state.h
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index 2378eeb3906693caec6f0b98b451a2b5eeedc1c9..e22faa61d0c881a3d315416c1b813c519ac94cc9 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -166,6 +166,8 @@ struct GPU_EXPORT ContextState {
void Initialize();
+ void SetLineWidthBounds(GLfloat min, GLfloat max);
+
void SetIgnoreCachedStateForTest(bool ignore) {
ignore_cached_state = ignore;
}
@@ -192,6 +194,7 @@ struct GPU_EXPORT ContextState {
void PushTextureDecompressionUnpackState() const;
void RestoreUnpackState() const;
+ void DoLineWidth(GLfloat width) const;
// Helper for getting cached state.
bool GetStateAsGLint(
@@ -348,6 +351,9 @@ struct GPU_EXPORT ContextState {
// the highest 2 bits for location (max_vertex_attribs - 1).
std::vector<uint32_t> generic_attrib_base_type_mask_;
+ GLfloat line_width_min_ = 0.0f;
+ GLfloat line_width_max_ = 1.0f;
+
FeatureInfo* feature_info_;
std::unique_ptr<ErrorState> error_state_;
};
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698