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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.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
Index: gpu/command_buffer/service/in_process_command_buffer.cc
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc
index 85729e5f187b1fd63477715879b9e41868764c61..5184f76df5d56c65378a45282046d3633527aee5 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.cc
+++ b/gpu/command_buffer/service/in_process_command_buffer.cc
@@ -165,10 +165,9 @@ InProcessCommandBuffer::Service::gpu_driver_bug_workarounds() {
return gpu_driver_bug_workarounds_;
}
-scoped_refptr<gfx::GLShareGroup>
-InProcessCommandBuffer::Service::share_group() {
+scoped_refptr<gl::GLShareGroup> InProcessCommandBuffer::Service::share_group() {
if (!share_group_.get())
- share_group_ = new gfx::GLShareGroup;
+ share_group_ = new gl::GLShareGroup;
return share_group_;
}
@@ -182,8 +181,8 @@ InProcessCommandBuffer::Service::mailbox_manager() {
gpu::gles2::ProgramCache* InProcessCommandBuffer::Service::program_cache() {
if (!program_cache_.get() &&
- (gfx::g_driver_gl.ext.b_GL_ARB_get_program_binary ||
- gfx::g_driver_gl.ext.b_GL_OES_get_program_binary) &&
+ (gl::g_driver_gl.ext.b_GL_ARB_get_program_binary ||
+ gl::g_driver_gl.ext.b_GL_OES_get_program_binary) &&
!gpu_preferences().disable_gpu_program_cache) {
program_cache_.reset(new gpu::gles2::MemoryProgramCache(
gpu_preferences().gpu_program_cache_size,
@@ -247,12 +246,12 @@ void InProcessCommandBuffer::PumpCommandsOnGpuThread() {
}
bool InProcessCommandBuffer::Initialize(
- scoped_refptr<gfx::GLSurface> surface,
+ scoped_refptr<gl::GLSurface> surface,
bool is_offscreen,
gfx::AcceleratedWidget window,
const gfx::Size& size,
const gles2::ContextCreationAttribHelper& attribs,
- gfx::GpuPreference gpu_preference,
+ gl::GpuPreference gpu_preference,
InProcessCommandBuffer* share_group,
GpuMemoryBufferManager* gpu_memory_buffer_manager,
ImageFactory* image_factory) {
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | gpu/command_buffer/service/mailbox_manager_sync.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698