| 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 "ui/gfx/compositor/compositor.h" | 5 #include "ui/compositor/compositor.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/threading/thread_restrictions.h" | 8 #include "base/threading/thread_restrictions.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFloatPoin
t.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFloatPoin
t.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 #include "third_party/skia/include/images/SkImageEncoder.h" | 14 #include "third_party/skia/include/images/SkImageEncoder.h" |
| 15 #include "ui/gfx/compositor/compositor_observer.h" | 15 #include "ui/compositor/compositor_observer.h" |
| 16 #include "ui/gfx/compositor/compositor_switches.h" | 16 #include "ui/compositor/compositor_switches.h" |
| 17 #include "ui/gfx/compositor/layer.h" | 17 #include "ui/compositor/layer.h" |
| 18 #include "ui/gfx/compositor/test_web_graphics_context_3d.h" | 18 #include "ui/compositor/test_web_graphics_context_3d.h" |
| 19 #include "ui/gfx/gl/gl_context.h" | 19 #include "ui/gfx/gl/gl_context.h" |
| 20 #include "ui/gfx/gl/gl_implementation.h" | 20 #include "ui/gfx/gl/gl_implementation.h" |
| 21 #include "ui/gfx/gl/gl_surface.h" | 21 #include "ui/gfx/gl/gl_surface.h" |
| 22 #include "webkit/glue/webthread_impl.h" | 22 #include "webkit/glue/webthread_impl.h" |
| 23 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 23 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 const double kDefaultRefreshRate = 60.0; | 27 const double kDefaultRefreshRate = 60.0; |
| 28 const double kTestRefreshRate = 100.0; | 28 const double kTestRefreshRate = 100.0; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 345 |
| 346 COMPOSITOR_EXPORT void DisableTestCompositor() { | 346 COMPOSITOR_EXPORT void DisableTestCompositor() { |
| 347 test_compositor_enabled = false; | 347 test_compositor_enabled = false; |
| 348 } | 348 } |
| 349 | 349 |
| 350 COMPOSITOR_EXPORT bool IsTestCompositorEnabled() { | 350 COMPOSITOR_EXPORT bool IsTestCompositorEnabled() { |
| 351 return test_compositor_enabled; | 351 return test_compositor_enabled; |
| 352 } | 352 } |
| 353 | 353 |
| 354 } // namespace ui | 354 } // namespace ui |
| OLD | NEW |