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

Side by Side Diff: cc/layer_tree_host.cc

Issue 12217102: cc: Avoid power of two textures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lower-case vendor. Created 7 years, 10 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
« no previous file with comments | « cc/layer_tree_host.h ('k') | cc/layer_tree_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/layer_tree_host.h ('k') | cc/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698