OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "cc/layer_tree_host.h" | 5 #include "cc/layer_tree_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 : bestTextureFormat(0) | 43 : bestTextureFormat(0) |
44 , usingPartialSwap(false) | 44 , usingPartialSwap(false) |
45 , usingAcceleratedPainting(false) | 45 , usingAcceleratedPainting(false) |
46 , usingSetVisibility(false) | 46 , usingSetVisibility(false) |
47 , usingSwapCompleteCallback(false) | 47 , usingSwapCompleteCallback(false) |
48 , usingGpuMemoryManager(false) | 48 , usingGpuMemoryManager(false) |
49 , usingDiscardBackbuffer(false) | 49 , usingDiscardBackbuffer(false) |
50 , usingEglImage(false) | 50 , usingEglImage(false) |
51 , allowPartialTextureUpdates(false) | 51 , allowPartialTextureUpdates(false) |
52 , maxTextureSize(0) | 52 , maxTextureSize(0) |
| 53 , avoidPow2Textures(false) |
53 { | 54 { |
54 } | 55 } |
55 | 56 |
56 RendererCapabilities::~RendererCapabilities() | 57 RendererCapabilities::~RendererCapabilities() |
57 { | 58 { |
58 } | 59 } |
59 | 60 |
60 bool LayerTreeHost::anyLayerTreeHostInstanceExists() | 61 bool LayerTreeHost::anyLayerTreeHostInstanceExists() |
61 { | 62 { |
62 return numLayerTreeInstances > 0; | 63 return numLayerTreeInstances > 0; |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 871 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
871 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 872 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
872 } | 873 } |
873 | 874 |
874 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() | 875 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() |
875 { | 876 { |
876 return m_proxy->capturePicture(); | 877 return m_proxy->capturePicture(); |
877 } | 878 } |
878 | 879 |
879 } // namespace cc | 880 } // namespace cc |
OLD | NEW |