| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/compositor/browser_compositor_view_mac.h" | 5 #include "content/browser/compositor/browser_compositor_view_mac.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | |
| 8 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/trace_event/trace_event.h" |
| 9 #include "content/browser/compositor/image_transport_factory.h" | 9 #include "content/browser/compositor/image_transport_factory.h" |
| 10 #include "content/browser/gpu/gpu_data_manager_impl.h" | 10 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 11 #include "content/browser/renderer_host/render_widget_resize_helper.h" | 11 #include "content/browser/renderer_host/render_widget_resize_helper.h" |
| 12 #include "content/public/browser/context_factory.h" | 12 #include "content/public/browser/context_factory.h" |
| 13 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 13 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
| 14 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" | 14 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" |
| 15 | 15 |
| 16 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
| 17 // BrowserCompositorMac | 17 // BrowserCompositorMac |
| 18 | 18 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 DCHECK_GT(g_placeholder_count, 0u); | 94 DCHECK_GT(g_placeholder_count, 0u); |
| 95 g_placeholder_count -= 1; | 95 g_placeholder_count -= 1; |
| 96 | 96 |
| 97 // If there are no placeholders allocated, destroy the recyclable | 97 // If there are no placeholders allocated, destroy the recyclable |
| 98 // BrowserCompositorMac. | 98 // BrowserCompositorMac. |
| 99 if (!g_placeholder_count) | 99 if (!g_placeholder_count) |
| 100 g_recyclable_browser_compositor.Get().reset(); | 100 g_recyclable_browser_compositor.Get().reset(); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace content | 103 } // namespace content |
| OLD | NEW |