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

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

Issue 14308014: Clean up of GLES2 Command Decoder by moving some of the error state into a separate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the remaining tests. Added mock ErrorState. Created 7 years, 8 months 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/texture_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 2efd6a940483b912a7a45748ef1c6e6214009ac8..30bdb784c109e546f11ed0b846ac410ceb6e61b9 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -23,6 +23,7 @@ namespace gles2 {
class GLES2Decoder;
class Display;
+class ErrorState;
class FeatureInfo;
class TextureDefinition;
class TextureManager;
@@ -477,7 +478,7 @@ class GPU_EXPORT TextureManager {
// Returns GL_NO_ERROR on success. Otherwise the error to generate.
// TODO(gman): Expand to SetParameteri,f,iv,fv
void SetParameter(
- const char* function_name, GLES2Decoder* decoder,
+ const char* function_name, ErrorState* error_state,
Texture* texture, GLenum pname, GLint param);
// Makes each of the mip levels as though they were generated.

Powered by Google App Engine
This is Rietveld 408576698