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

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

Issue 2482673002: fix --show-composited-layer-borders on Mac (Closed)
Patch Set: another approach 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
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..e74d19bb198aa9a9cdebf072c21ed502475f9383 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 InitLineWidth(GLfloat min, GLfloat max);
piman 2016/11/07 22:34:40 nit: maybe SetLineWidthBounds ?
Lof 2016/11/08 20:11:58 Done.
+
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 | « no previous file | gpu/command_buffer/service/context_state.cc » ('j') | gpu/command_buffer/service/context_state_impl_autogen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698