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

Side by Side Diff: content/browser/renderer_host/compositing_iosurface_mac.mm

Issue 11618049: Cleanup: Remove unneeded browser_thread.h includes in contents. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build Created 7 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/compositing_iosurface_mac.h" 5 #include "content/browser/renderer_host/compositing_iosurface_mac.h"
6 6
7 #include <OpenGL/OpenGL.h> 7 #include <OpenGL/OpenGL.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/debug/trace_event.h" 11 #include "base/debug/trace_event.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
14 #include "content/common/content_constants_internal.h" 14 #include "content/common/content_constants_internal.h"
15 #include "content/public/browser/browser_thread.h"
16 #include "gpu/command_buffer/service/gpu_switches.h" 15 #include "gpu/command_buffer/service/gpu_switches.h"
17 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
18 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 17 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
19 #include "ui/gl/gl_context.h" 18 #include "ui/gl/gl_context.h"
20 #include "ui/gl/gl_switches.h" 19 #include "ui/gl/gl_switches.h"
21 #include "ui/gl/gpu_switching_manager.h" 20 #include "ui/gl/gpu_switching_manager.h"
22 #include "ui/gfx/size_conversions.h" 21 #include "ui/gfx/size_conversions.h"
23 #include "ui/surface/io_surface_support_mac.h" 22 #include "ui/surface/io_surface_support_mac.h"
24 23
25 #ifdef NDEBUG 24 #ifdef NDEBUG
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 glDeleteFramebuffersEXT(1, &copy_context_.frame_buffer); CHECK_GL_ERROR(); 847 glDeleteFramebuffersEXT(1, &copy_context_.frame_buffer); CHECK_GL_ERROR();
849 glDeleteTextures(1, &copy_context_.frame_buffer_texture); CHECK_GL_ERROR(); 848 glDeleteTextures(1, &copy_context_.frame_buffer_texture); CHECK_GL_ERROR();
850 glDeleteBuffers(1, &copy_context_.pixel_buffer); CHECK_GL_ERROR(); 849 glDeleteBuffers(1, &copy_context_.pixel_buffer); CHECK_GL_ERROR();
851 if (copy_context_.use_fence) { 850 if (copy_context_.use_fence) {
852 glDeleteFencesAPPLE(1, &copy_context_.fence); CHECK_GL_ERROR(); 851 glDeleteFencesAPPLE(1, &copy_context_.fence); CHECK_GL_ERROR();
853 } 852 }
854 copy_context_.Reset(); 853 copy_context_.Reset();
855 } 854 }
856 855
857 } // namespace content 856 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/power_save_blocker_mac.cc ('k') | content/browser/renderer_host/media/media_stream_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698