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

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

Issue 85143002: Dirty rects always contain full tiles with delegated rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_
6 #define CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_
7 7
8 #include "cc/resources/content_layer_updater.h" 8 #include "cc/resources/content_layer_updater.h"
9 #include "third_party/skia/include/core/SkPicture.h" 9 #include "third_party/skia/include/core/SkPicture.h"
10 10
(...skipping 10 matching lines...) Expand all
21 // implementations. 21 // implementations.
22 class SkPictureContentLayerUpdater : public ContentLayerUpdater { 22 class SkPictureContentLayerUpdater : public ContentLayerUpdater {
23 protected: 23 protected:
24 SkPictureContentLayerUpdater( 24 SkPictureContentLayerUpdater(
25 scoped_ptr<LayerPainter> painter, 25 scoped_ptr<LayerPainter> painter,
26 RenderingStatsInstrumentation* stats_instrumentation, 26 RenderingStatsInstrumentation* stats_instrumentation,
27 int layer_id); 27 int layer_id);
28 virtual ~SkPictureContentLayerUpdater(); 28 virtual ~SkPictureContentLayerUpdater();
29 29
30 virtual void PrepareToUpdate(gfx::Rect content_rect, 30 virtual void PrepareToUpdate(gfx::Rect content_rect,
31 gfx::Rect paint_rect,
31 gfx::Size tile_size, 32 gfx::Size tile_size,
32 float contents_width_scale, 33 float contents_width_scale,
33 float contents_height_scale, 34 float contents_height_scale,
34 gfx::Rect* resulting_opaque_rect) OVERRIDE; 35 gfx::Rect* resulting_opaque_rect) OVERRIDE;
35 void DrawPicture(SkCanvas* canvas); 36 void DrawPicture(SkCanvas* canvas);
36 37
37 private: 38 private:
38 // Recording canvas. 39 // Recording canvas.
39 SkPicture picture_; 40 SkPicture picture_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater); 42 DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater);
42 }; 43 };
43 44
44 } // namespace cc 45 } // namespace cc
45 46
46 #endif // CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 47 #endif // CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698