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

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

Issue 12326146: Refactor/Rename a bunch of GPU stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « gpu/command_buffer/service/context_state.h ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_state.cc
diff --git a/gpu/command_buffer/service/context_state.cc b/gpu/command_buffer/service/context_state.cc
index 152ac6eadbb2dae50619868566a5ea59e5059bb5..3b869e38a97f6b462d6de2c62380946c45804773 100644
--- a/gpu/command_buffer/service/context_state.cc
+++ b/gpu/command_buffer/service/context_state.cc
@@ -70,7 +70,7 @@ void ContextState::RestoreTextureUnitBindings(GLuint unit) const {
void ContextState::RestoreBufferBindings() const {
if (vertex_attrib_manager) {
- BufferManager::BufferInfo* element_array_buffer =
+ BufferManager::Buffer* element_array_buffer =
vertex_attrib_manager->element_array_buffer();
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,
element_array_buffer ? element_array_buffer->service_id() : 0);
@@ -96,10 +96,10 @@ void ContextState::RestoreActiveTexture() const {
}
void ContextState::RestoreAttribute(GLuint attrib) const {
- const VertexAttribManager::VertexAttribInfo* info =
- vertex_attrib_manager->GetVertexAttribInfo(attrib);
+ const VertexAttrib* info =
+ vertex_attrib_manager->GetVertexAttrib(attrib);
const void* ptr = reinterpret_cast<const void*>(info->offset());
- BufferManager::BufferInfo* buffer_info = info->buffer();
+ BufferManager::Buffer* buffer_info = info->buffer();
glBindBuffer(
GL_ARRAY_BUFFER, buffer_info ? buffer_info->service_id() : 0);
glVertexAttribPointer(
« no previous file with comments | « gpu/command_buffer/service/context_state.h ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698