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

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

Issue 23049007: Implemented printToSkPicture without using WebViewBenchmarkSupport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 7 years, 4 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 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 #ifndef CC_LAYERS_PICTURE_LAYER_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_H_
6 #define CC_LAYERS_PICTURE_LAYER_H_ 6 #define CC_LAYERS_PICTURE_LAYER_H_
7 7
8 #include "cc/base/invalidation_region.h" 8 #include "cc/base/invalidation_region.h"
9 #include "cc/debug/devtools_instrumentation.h" 9 #include "cc/debug/devtools_instrumentation.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 16 matching lines...) Expand all
27 virtual scoped_ptr<LayerImpl> CreateLayerImpl( 27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(
28 LayerTreeImpl* tree_impl) OVERRIDE; 28 LayerTreeImpl* tree_impl) OVERRIDE;
29 virtual void SetLayerTreeHost(LayerTreeHost* host) OVERRIDE; 29 virtual void SetLayerTreeHost(LayerTreeHost* host) OVERRIDE;
30 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 30 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
31 virtual void SetNeedsDisplayRect(const gfx::RectF& layer_rect) OVERRIDE; 31 virtual void SetNeedsDisplayRect(const gfx::RectF& layer_rect) OVERRIDE;
32 virtual bool Update( 32 virtual bool Update(
33 ResourceUpdateQueue* queue, 33 ResourceUpdateQueue* queue,
34 const OcclusionTracker* occlusion) OVERRIDE; 34 const OcclusionTracker* occlusion) OVERRIDE;
35 virtual void SetIsMask(bool is_mask) OVERRIDE; 35 virtual void SetIsMask(bool is_mask) OVERRIDE;
36 virtual bool SupportsLCDText() const OVERRIDE; 36 virtual bool SupportsLCDText() const OVERRIDE;
37 virtual skia::RefPtr<SkPicture> GetPicture() const OVERRIDE;
37 38
38 protected: 39 protected:
39 explicit PictureLayer(ContentLayerClient* client); 40 explicit PictureLayer(ContentLayerClient* client);
40 virtual ~PictureLayer(); 41 virtual ~PictureLayer();
41 42
42 private: 43 private:
43 ContentLayerClient* client_; 44 ContentLayerClient* client_;
44 scoped_refptr<PicturePile> pile_; 45 scoped_refptr<PicturePile> pile_;
45 devtools_instrumentation:: 46 devtools_instrumentation::
46 ScopedLayerObjectTracker instrumentation_object_tracker_; 47 ScopedLayerObjectTracker instrumentation_object_tracker_;
47 // Invalidation to use the next time update is called. 48 // Invalidation to use the next time update is called.
48 InvalidationRegion pending_invalidation_; 49 InvalidationRegion pending_invalidation_;
49 // Invalidation from the last time update was called. 50 // Invalidation from the last time update was called.
50 Region pile_invalidation_; 51 Region pile_invalidation_;
51 bool is_mask_; 52 bool is_mask_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(PictureLayer); 54 DISALLOW_COPY_AND_ASSIGN(PictureLayer);
54 }; 55 };
55 56
56 } // namespace cc 57 } // namespace cc
57 58
58 #endif // CC_LAYERS_PICTURE_LAYER_H_ 59 #endif // CC_LAYERS_PICTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/picture_layer.cc » ('j') | cc/layers/picture_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698