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

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

Issue 73923003: Shared Raster Worker Threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build Error for Mac, macro conflict, moving setter to WorkerPool. Created 6 years, 11 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
« no previous file with comments | « cc/resources/image_raster_worker_pool.cc ('k') | cc/resources/picture_pile.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 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_RESOURCES_PICTURE_PILE_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_H_
6 #define CC_RESOURCES_PICTURE_PILE_H_ 6 #define CC_RESOURCES_PICTURE_PILE_H_
7 7
8 #include "cc/resources/picture_pile_base.h" 8 #include "cc/resources/picture_pile_base.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 10
(...skipping 11 matching lines...) Expand all
22 // Return true iff the pile was modified. 22 // Return true iff the pile was modified.
23 bool Update( 23 bool Update(
24 ContentLayerClient* painter, 24 ContentLayerClient* painter,
25 SkColor background_color, 25 SkColor background_color,
26 bool contents_opaque, 26 bool contents_opaque,
27 const Region& invalidation, 27 const Region& invalidation,
28 const gfx::Rect& visible_layer_rect, 28 const gfx::Rect& visible_layer_rect,
29 int frame_number, 29 int frame_number,
30 RenderingStatsInstrumentation* stats_instrumentation); 30 RenderingStatsInstrumentation* stats_instrumentation);
31 31
32 void set_num_raster_threads(int num_raster_threads) {
33 num_raster_threads_ = num_raster_threads;
34 }
35
36 void set_slow_down_raster_scale_factor(int factor) { 32 void set_slow_down_raster_scale_factor(int factor) {
37 slow_down_raster_scale_factor_for_debug_ = factor; 33 slow_down_raster_scale_factor_for_debug_ = factor;
38 } 34 }
39 35
40 void set_show_debug_picture_borders(bool show) { 36 void set_show_debug_picture_borders(bool show) {
41 show_debug_picture_borders_ = show; 37 show_debug_picture_borders_ = show;
42 } 38 }
43 39
44 protected: 40 protected:
45 virtual ~PicturePile(); 41 virtual ~PicturePile();
46 42
47 private: 43 private:
48 friend class PicturePileImpl; 44 friend class PicturePileImpl;
49 45
50 DISALLOW_COPY_AND_ASSIGN(PicturePile); 46 DISALLOW_COPY_AND_ASSIGN(PicturePile);
51 }; 47 };
52 48
53 } // namespace cc 49 } // namespace cc
54 50
55 #endif // CC_RESOURCES_PICTURE_PILE_H_ 51 #endif // CC_RESOURCES_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « cc/resources/image_raster_worker_pool.cc ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698