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

Side by Side Diff: gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc

Issue 216833005: Wire glDiscardFramebuffer up to Skia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/gl/gl_bindings_skia_in_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h" 5 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h"
6 6
7 #ifndef GL_GLEXT_PROTOTYPES 7 #ifndef GL_GLEXT_PROTOTYPES
8 #define GL_GLEXT_PROTOTYPES 8 #define GL_GLEXT_PROTOTYPES
9 #endif 9 #endif
10 #include "gpu/GLES2/gl2extchromium.h" 10 #include "gpu/GLES2/gl2extchromium.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 functions->fCreateShader = glCreateShader; 44 functions->fCreateShader = glCreateShader;
45 functions->fCullFace = glCullFace; 45 functions->fCullFace = glCullFace;
46 functions->fDeleteBuffers = glDeleteBuffers; 46 functions->fDeleteBuffers = glDeleteBuffers;
47 functions->fDeleteProgram = glDeleteProgram; 47 functions->fDeleteProgram = glDeleteProgram;
48 functions->fDeleteShader = glDeleteShader; 48 functions->fDeleteShader = glDeleteShader;
49 functions->fDeleteTextures = glDeleteTextures; 49 functions->fDeleteTextures = glDeleteTextures;
50 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; 50 functions->fDeleteVertexArrays = glDeleteVertexArraysOES;
51 functions->fDepthMask = glDepthMask; 51 functions->fDepthMask = glDepthMask;
52 functions->fDisable = glDisable; 52 functions->fDisable = glDisable;
53 functions->fDisableVertexAttribArray = glDisableVertexAttribArray; 53 functions->fDisableVertexAttribArray = glDisableVertexAttribArray;
54 functions->fDiscardFramebuffer = glDiscardFramebufferEXT;
54 functions->fDrawArrays = glDrawArrays; 55 functions->fDrawArrays = glDrawArrays;
55 functions->fDrawElements = glDrawElements; 56 functions->fDrawElements = glDrawElements;
56 functions->fEnable = glEnable; 57 functions->fEnable = glEnable;
57 functions->fEnableVertexAttribArray = glEnableVertexAttribArray; 58 functions->fEnableVertexAttribArray = glEnableVertexAttribArray;
58 functions->fFinish = glFinish; 59 functions->fFinish = glFinish;
59 functions->fFlush = glFlush; 60 functions->fFlush = glFlush;
60 functions->fFrontFace = glFrontFace; 61 functions->fFrontFace = glFrontFace;
61 functions->fGenBuffers = glGenBuffers; 62 functions->fGenBuffers = glGenBuffers;
62 functions->fGenTextures = glGenTextures; 63 functions->fGenTextures = glGenTextures;
63 functions->fGenVertexArrays = glGenVertexArraysOES; 64 functions->fGenVertexArrays = glGenVertexArraysOES;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 functions->fRenderbufferStorageMultisampleES2EXT = 134 functions->fRenderbufferStorageMultisampleES2EXT =
134 glRenderbufferStorageMultisampleEXT; 135 glRenderbufferStorageMultisampleEXT;
135 functions->fBindUniformLocation = glBindUniformLocationCHROMIUM; 136 functions->fBindUniformLocation = glBindUniformLocationCHROMIUM;
136 functions->fBlitFramebuffer = glBlitFramebufferCHROMIUM; 137 functions->fBlitFramebuffer = glBlitFramebufferCHROMIUM;
137 functions->fGenerateMipmap = glGenerateMipmap; 138 functions->fGenerateMipmap = glGenerateMipmap;
138 139
139 return interface; 140 return interface;
140 } 141 }
141 142
142 } // namespace skia 143 } // namespace skia
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_bindings_skia_in_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698