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

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: One more tweak from zmo@'s feedback 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
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..8f315454114b1f16fe491416bec99a6bd559937b 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;
piman 2015/12/05 02:45:19 nit: no need to add a space between the > (we're u
+
// The values for each attrib.
std::vector<Vec4> attrib_values;

Powered by Google App Engine
This is Rietveld 408576698