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

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

Issue 2556623002: Implement GetIntegerv(SAMPLER_BINDING/TRANSFORM_FEEDBACK_BINDING) in command buffer. (Closed)
Patch Set: fix Created 4 years 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/sampler_manager.h
diff --git a/gpu/command_buffer/service/sampler_manager.h b/gpu/command_buffer/service/sampler_manager.h
index 8d8534328a588b146ff0b03195f00f429f1147f8..61c51160044f0719b44b6da786582ff93b77c081 100644
--- a/gpu/command_buffer/service/sampler_manager.h
+++ b/gpu/command_buffer/service/sampler_manager.h
@@ -37,9 +37,12 @@ struct SamplerState {
class GPU_EXPORT Sampler : public base::RefCounted<Sampler> {
public:
- Sampler(SamplerManager* manager, GLuint service_id);
+ Sampler(SamplerManager* manager, GLuint client_id, GLuint service_id);
+
+ GLuint client_id() const {
+ return client_id_;
+ }
- // The service side OpenGL id of the texture.
GLuint service_id() const {
return service_id_;
}
@@ -114,7 +117,7 @@ class GPU_EXPORT Sampler : public base::RefCounted<Sampler> {
// The manager that owns this Sampler.
SamplerManager* manager_;
- // The id of the texure
+ GLuint client_id_;
GLuint service_id_;
// Sampler parameters.
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc ('k') | gpu/command_buffer/service/sampler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698