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

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

Issue 1498033003: Implement SamplerManager in the command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unnessecary state initialization Created 5 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
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('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 71bb8a560645dd7a980bac14e710c16199db8669..5f154c28a73eb90bcec864f3cee7399585da8f1e 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "gpu/command_buffer/service/gl_utils.h"
+#include "gpu/command_buffer/service/sampler_manager.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/command_buffer/service/valuebuffer_manager.h"
#include "gpu/command_buffer/service/vertex_attrib_manager.h"
@@ -217,6 +218,7 @@ struct GPU_EXPORT ContextState {
void RemoveBoundBuffer(Buffer* buffer);
void UnbindTexture(TextureRef* texture);
+ void UnbindSampler(Sampler* sampler);
#include "gpu/command_buffer/service/context_state_autogen.h"
@@ -241,6 +243,9 @@ struct GPU_EXPORT ContextState {
// Which textures are bound to texture units through glActiveTexture.
std::vector<TextureUnit> texture_units;
+ // Which samplers are bound to each texture unit;
+ std::vector<scoped_refptr<Sampler>> sampler_units;
+
// The values for each attrib.
std::vector<Vec4> attrib_values;
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698