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

Side by Side Diff: cc/resources/bitmap_skpicture_content_layer_updater.h

Issue 13266002: cc: Pass RenderingStatsInstrumentation to ContentLayerUpdater (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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
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 #ifndef CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_
6 #define CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_
7 7
8 #include "cc/resources/skpicture_content_layer_updater.h" 8 #include "cc/resources/skpicture_content_layer_updater.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 10
(...skipping 16 matching lines...) Expand all
27 RenderingStats* stats) OVERRIDE; 27 RenderingStats* stats) OVERRIDE;
28 28
29 private: 29 private:
30 SkBitmap bitmap_; 30 SkBitmap bitmap_;
31 BitmapSkPictureContentLayerUpdater* updater_; 31 BitmapSkPictureContentLayerUpdater* updater_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(Resource); 33 DISALLOW_COPY_AND_ASSIGN(Resource);
34 }; 34 };
35 35
36 static scoped_refptr<BitmapSkPictureContentLayerUpdater> Create( 36 static scoped_refptr<BitmapSkPictureContentLayerUpdater> Create(
37 scoped_ptr<LayerPainter> painter); 37 scoped_ptr<LayerPainter> painter,
38 RenderingStatsInstrumentation* stats_instrumentation);
38 39
39 virtual scoped_ptr<LayerUpdater::Resource> CreateResource( 40 virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
40 PrioritizedResourceManager* manager) OVERRIDE; 41 PrioritizedResourceManager* manager) OVERRIDE;
41 void PaintContentsRect(SkCanvas* canvas, 42 void PaintContentsRect(SkCanvas* canvas,
42 gfx::Rect source_rect, 43 gfx::Rect source_rect,
43 RenderingStats* stats); 44 RenderingStats* stats);
44 45
45 private: 46 private:
46 explicit BitmapSkPictureContentLayerUpdater(scoped_ptr<LayerPainter> painter); 47 BitmapSkPictureContentLayerUpdater(
48 scoped_ptr<LayerPainter> painter,
49 RenderingStatsInstrumentation* stats_instrumentation);
47 virtual ~BitmapSkPictureContentLayerUpdater(); 50 virtual ~BitmapSkPictureContentLayerUpdater();
48 51
49 DISALLOW_COPY_AND_ASSIGN(BitmapSkPictureContentLayerUpdater); 52 DISALLOW_COPY_AND_ASSIGN(BitmapSkPictureContentLayerUpdater);
50 }; 53 };
51 54
52 } // namespace cc 55 } // namespace cc
53 56
54 #endif // CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 57 #endif // CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/bitmap_skpicture_content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698