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

Side by Side Diff: cc/heads_up_display_layer.cc

Issue 11270047: cc: Rename TextureUpdate to ResourceUpdate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort includes and forward declarations. Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/heads_up_display_layer.h ('k') | cc/image_layer.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "config.h" 5 #include "config.h"
6 6
7 #include "cc/heads_up_display_layer.h" 7 #include "cc/heads_up_display_layer.h"
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "cc/heads_up_display_layer_impl.h" 10 #include "cc/heads_up_display_layer_impl.h"
(...skipping 10 matching lines...) Expand all
21 : Layer() 21 : Layer()
22 { 22 {
23 23
24 setBounds(IntSize(512, 128)); 24 setBounds(IntSize(512, 128));
25 } 25 }
26 26
27 HeadsUpDisplayLayer::~HeadsUpDisplayLayer() 27 HeadsUpDisplayLayer::~HeadsUpDisplayLayer()
28 { 28 {
29 } 29 }
30 30
31 void HeadsUpDisplayLayer::update(TextureUpdateQueue&, const OcclusionTracker*, R enderingStats&) 31 void HeadsUpDisplayLayer::update(ResourceUpdateQueue&, const OcclusionTracker*, RenderingStats&)
32 { 32 {
33 const LayerTreeSettings& settings = layerTreeHost()->settings(); 33 const LayerTreeSettings& settings = layerTreeHost()->settings();
34 int maxTextureSize = layerTreeHost()->rendererCapabilities().maxTextureSize; 34 int maxTextureSize = layerTreeHost()->rendererCapabilities().maxTextureSize;
35 35
36 IntSize bounds; 36 IntSize bounds;
37 if (settings.showPlatformLayerTree || settings.showDebugRects()) { 37 if (settings.showPlatformLayerTree || settings.showDebugRects()) {
38 bounds.setWidth(std::min(maxTextureSize, layerTreeHost()->deviceViewport Size().width())); 38 bounds.setWidth(std::min(maxTextureSize, layerTreeHost()->deviceViewport Size().width()));
39 bounds.setHeight(std::min(maxTextureSize, layerTreeHost()->deviceViewpor tSize().height())); 39 bounds.setHeight(std::min(maxTextureSize, layerTreeHost()->deviceViewpor tSize().height()));
40 } else { 40 } else {
41 bounds.setWidth(512); 41 bounds.setWidth(512);
(...skipping 24 matching lines...) Expand all
66 Layer::pushPropertiesTo(layerImpl); 66 Layer::pushPropertiesTo(layerImpl);
67 67
68 if (!m_fontAtlas.get()) 68 if (!m_fontAtlas.get())
69 return; 69 return;
70 70
71 HeadsUpDisplayLayerImpl* hudLayerImpl = static_cast<HeadsUpDisplayLayerImpl* >(layerImpl); 71 HeadsUpDisplayLayerImpl* hudLayerImpl = static_cast<HeadsUpDisplayLayerImpl* >(layerImpl);
72 hudLayerImpl->setFontAtlas(m_fontAtlas.Pass()); 72 hudLayerImpl->setFontAtlas(m_fontAtlas.Pass());
73 } 73 }
74 74
75 } 75 }
OLDNEW
« no previous file with comments | « cc/heads_up_display_layer.h ('k') | cc/image_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698