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

Side by Side Diff: cc/layers/picture_image_layer_impl.h

Issue 12954006: Let AreVisibleResourcesReady return correct value for PictureImageLayerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_
7 7
8 #include "cc/layers/picture_layer_impl.h" 8 #include "cc/layers/picture_layer_impl.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl { 12 class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl {
13 public: 13 public:
14 static scoped_ptr<PictureImageLayerImpl> Create(LayerTreeImpl* treeImpl, 14 static scoped_ptr<PictureImageLayerImpl> Create(LayerTreeImpl* treeImpl,
15 int id) { 15 int id) {
16 return make_scoped_ptr(new PictureImageLayerImpl(treeImpl, id)); 16 return make_scoped_ptr(new PictureImageLayerImpl(treeImpl, id));
17 } 17 }
18 virtual ~PictureImageLayerImpl(); 18 virtual ~PictureImageLayerImpl();
19 19
20 virtual const char* LayerTypeAsString() const OVERRIDE; 20 virtual const char* LayerTypeAsString() const OVERRIDE;
21 virtual scoped_ptr<LayerImpl> CreateLayerImpl( 21 virtual scoped_ptr<LayerImpl> CreateLayerImpl(
22 LayerTreeImpl* treeImpl) OVERRIDE; 22 LayerTreeImpl* treeImpl) OVERRIDE;
23 23
24 protected: 24 protected:
25 PictureImageLayerImpl(LayerTreeImpl* treeImpl, int id); 25 PictureImageLayerImpl(LayerTreeImpl* treeImpl, int id);
26 26
27 virtual bool ShouldAdjustRasterSourceScale() const OVERRIDE;
27 virtual void CalculateRasterContentsScale( 28 virtual void CalculateRasterContentsScale(
28 bool animating_transform_to_screen, 29 bool animating_transform_to_screen) OVERRIDE;
29 float* raster_contents_scale,
30 float* low_res_raster_contents_scale) OVERRIDE;
31 virtual void GetDebugBorderProperties( 30 virtual void GetDebugBorderProperties(
32 SkColor* color, float* width) const OVERRIDE; 31 SkColor* color, float* width) const OVERRIDE;
33 32
34 DISALLOW_COPY_AND_ASSIGN(PictureImageLayerImpl); 33 DISALLOW_COPY_AND_ASSIGN(PictureImageLayerImpl);
35 }; 34 };
36 35
37 } 36 }
38 37
39 #endif // CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ 38 #endif // CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698