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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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/client/gl_in_process_context.cc ('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/buffer_manager.cc
diff --git a/gpu/command_buffer/service/buffer_manager.cc b/gpu/command_buffer/service/buffer_manager.cc
index 1644f06ffba45a50157fe311e4fa5dc90577d225..1407ec8c95c61d359b2294eadb2d80ab5b749211 100644
--- a/gpu/command_buffer/service/buffer_manager.cc
+++ b/gpu/command_buffer/service/buffer_manager.cc
@@ -355,7 +355,7 @@ bool BufferManager::UseNonZeroSizeForClientSideArrayBuffer() {
bool BufferManager::UseShadowBuffer(GLenum target, GLenum usage) {
const bool is_client_side_array = IsUsageClientSideArray(usage);
const bool support_fixed_attribs =
- gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2;
+ gl::GetGLImplementation() == gl::kGLImplementationEGLGLES2;
// TODO(zmo): Don't shadow buffer data on ES3. crbug.com/491002.
return (
@@ -651,7 +651,7 @@ bool BufferManager::OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
base::trace_event::MemoryAllocatorDump::kUnitsBytes,
static_cast<uint64_t>(buffer->size()));
- auto guid = gfx::GetGLBufferGUIDForTracing(
+ auto guid = gl::GetGLBufferGUIDForTracing(
memory_tracker_->ShareGroupTracingGUID(), client_buffer_id);
pmd->CreateSharedGlobalAllocatorDump(guid);
pmd->AddOwnershipEdge(dump->guid(), guid);
« no previous file with comments | « gpu/command_buffer/client/gl_in_process_context.cc ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698