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

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

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.cc
diff --git a/gpu/command_buffer/service/sampler_manager.cc b/gpu/command_buffer/service/sampler_manager.cc
index c76cbf95dac06ae8cc8b083b6e648b19a32efd18..9b8ec3c4b65ae500d85b389821836d4f64d7efec 100644
--- a/gpu/command_buffer/service/sampler_manager.cc
+++ b/gpu/command_buffer/service/sampler_manager.cc
@@ -30,8 +30,9 @@ SamplerState::SamplerState()
min_lod(-1000.0f) {
}
-Sampler::Sampler(SamplerManager* manager, GLuint service_id)
+Sampler::Sampler(SamplerManager* manager, GLuint client_id, GLuint service_id)
: manager_(manager),
+ client_id_(client_id),
service_id_(service_id),
deleted_(false) {
DCHECK(manager);
@@ -147,7 +148,7 @@ void SamplerManager::Destroy(bool have_context) {
Sampler* SamplerManager::CreateSampler(GLuint client_id, GLuint service_id) {
DCHECK_NE(0u, service_id);
auto result = samplers_.insert(std::make_pair(client_id,
- scoped_refptr<Sampler>(new Sampler(this, service_id))));
+ scoped_refptr<Sampler>(new Sampler(this, client_id, service_id))));
DCHECK(result.second);
return result.first->second.get();
}
« no previous file with comments | « gpu/command_buffer/service/sampler_manager.h ('k') | gpu/command_buffer/service/transform_feedback_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698