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

Side by Side Diff: cc/layer_tree_impl.cc

Issue 11704002: cc: Generate tilings at other scales for impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 7 years, 11 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 | Annotate | Revision Log
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_impl.h" 5 #include "cc/layer_tree_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/layer_tree_host_common.h" 8 #include "cc/layer_tree_host_common.h"
9 #include "cc/layer_tree_host_impl.h" 9 #include "cc/layer_tree_host_impl.h"
10 #include "ui/gfx/vector2d_conversions.h" 10 #include "ui/gfx/vector2d_conversions.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 LayerTreeImpl* tree = layer_tree_host_impl_->pendingTree(); 216 LayerTreeImpl* tree = layer_tree_host_impl_->pendingTree();
217 if (!tree) 217 if (!tree)
218 return NULL; 218 return NULL;
219 return tree->LayerById(id); 219 return tree->LayerById(id);
220 } 220 }
221 221
222 int LayerTreeImpl::MaxTextureSize() const { 222 int LayerTreeImpl::MaxTextureSize() const {
223 return layer_tree_host_impl_->rendererCapabilities().maxTextureSize; 223 return layer_tree_host_impl_->rendererCapabilities().maxTextureSize;
224 } 224 }
225 225
226 bool LayerTreeImpl::PinchGestureActive() const {
227 return layer_tree_host_impl_->pinchGestureActive();
228 }
229
226 void LayerTreeImpl::SetNeedsRedraw() { 230 void LayerTreeImpl::SetNeedsRedraw() {
227 layer_tree_host_impl_->setNeedsRedraw(); 231 layer_tree_host_impl_->setNeedsRedraw();
228 } 232 }
229 233
230 void LayerTreeImpl::SetNeedsUpdateDrawProperties() { 234 void LayerTreeImpl::SetNeedsUpdateDrawProperties() {
231 layer_tree_host_impl_->setNeedsUpdateDrawProperties(); 235 layer_tree_host_impl_->setNeedsUpdateDrawProperties();
232 } 236 }
233 237
234 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { 238 const LayerTreeDebugState& LayerTreeImpl::debug_state() const {
235 return layer_tree_host_impl_->debugState(); 239 return layer_tree_host_impl_->debugState();
(...skipping 21 matching lines...) Expand all
257 261
258 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { 262 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const {
259 return layer_tree_host_impl_->animationRegistrar(); 263 return layer_tree_host_impl_->animationRegistrar();
260 } 264 }
261 265
262 const PinchZoomViewport& LayerTreeImpl::pinch_zoom_viewport() const { 266 const PinchZoomViewport& LayerTreeImpl::pinch_zoom_viewport() const {
263 return layer_tree_host_impl_->pinchZoomViewport(); 267 return layer_tree_host_impl_->pinchZoomViewport();
264 } 268 }
265 269
266 } // namespace cc 270 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_impl.h ('k') | cc/layer_tree_settings.h » ('j') | cc/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698