OLD | NEW |
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 Loading... |
848 glDeleteFramebuffersEXT(1, ©_context_.frame_buffer); CHECK_GL_ERROR(); | 847 glDeleteFramebuffersEXT(1, ©_context_.frame_buffer); CHECK_GL_ERROR(); |
849 glDeleteTextures(1, ©_context_.frame_buffer_texture); CHECK_GL_ERROR(); | 848 glDeleteTextures(1, ©_context_.frame_buffer_texture); CHECK_GL_ERROR(); |
850 glDeleteBuffers(1, ©_context_.pixel_buffer); CHECK_GL_ERROR(); | 849 glDeleteBuffers(1, ©_context_.pixel_buffer); CHECK_GL_ERROR(); |
851 if (copy_context_.use_fence) { | 850 if (copy_context_.use_fence) { |
852 glDeleteFencesAPPLE(1, ©_context_.fence); CHECK_GL_ERROR(); | 851 glDeleteFencesAPPLE(1, ©_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 |
OLD | NEW |