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: ui/gfx/compositor/layer.h

Issue 8536005: aura/cc: Fix accelerated content size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « ui/gfx/compositor/compositor_cc.h ('k') | ui/gfx/compositor/layer.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef UI_GFX_COMPOSITOR_LAYER_H_ 5 #ifndef UI_GFX_COMPOSITOR_LAYER_H_
6 #define UI_GFX_COMPOSITOR_LAYER_H_ 6 #define UI_GFX_COMPOSITOR_LAYER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE; 264 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE;
265 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE; 265 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE;
266 virtual void ScheduleDrawForAnimation() OVERRIDE; 266 virtual void ScheduleDrawForAnimation() OVERRIDE;
267 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE; 267 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE;
268 virtual const Transform& GetTransformForAnimation() const OVERRIDE; 268 virtual const Transform& GetTransformForAnimation() const OVERRIDE;
269 virtual float GetOpacityForAnimation() const OVERRIDE; 269 virtual float GetOpacityForAnimation() const OVERRIDE;
270 270
271 #if defined(USE_WEBKIT_COMPOSITOR) 271 #if defined(USE_WEBKIT_COMPOSITOR)
272 void CreateWebLayer(); 272 void CreateWebLayer();
273 void RecomputeTransform(); 273 void RecomputeTransform();
274 void RecomputeDrawsContent(); 274 void RecomputeDrawsContentAndUVRect();
275 #endif 275 #endif
276 276
277 const LayerType type_; 277 const LayerType type_;
278 278
279 Compositor* compositor_; 279 Compositor* compositor_;
280 280
281 scoped_refptr<ui::Texture> texture_; 281 scoped_refptr<ui::Texture> texture_;
282 282
283 Layer* parent_; 283 Layer* parent_;
284 284
(...skipping 25 matching lines...) Expand all
310 WebKit::WebLayer web_layer_; 310 WebKit::WebLayer web_layer_;
311 bool web_layer_is_accelerated_; 311 bool web_layer_is_accelerated_;
312 #endif 312 #endif
313 313
314 DISALLOW_COPY_AND_ASSIGN(Layer); 314 DISALLOW_COPY_AND_ASSIGN(Layer);
315 }; 315 };
316 316
317 } // namespace ui 317 } // namespace ui
318 318
319 #endif // UI_GFX_COMPOSITOR_LAYER_H_ 319 #endif // UI_GFX_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/compositor_cc.h ('k') | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698