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

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

Issue 147603006: [#7] Resubmitted - Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resubmit 145313006 Created 6 years, 10 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/quads/tile_draw_quad.cc ('k') | cc/resources/bitmap_content_layer_updater.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 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_CONTENT_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_BITMAP_CONTENT_LAYER_UPDATER_H_
6 #define CC_RESOURCES_BITMAP_CONTENT_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_BITMAP_CONTENT_LAYER_UPDATER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/resources/content_layer_updater.h" 9 #include "cc/resources/content_layer_updater.h"
10 #include "skia/ext/refptr.h" 10 #include "skia/ext/refptr.h"
(...skipping 30 matching lines...) Expand all
41 }; 41 };
42 42
43 static scoped_refptr<BitmapContentLayerUpdater> Create( 43 static scoped_refptr<BitmapContentLayerUpdater> Create(
44 scoped_ptr<LayerPainter> painter, 44 scoped_ptr<LayerPainter> painter,
45 RenderingStatsInstrumentation* stats_instrumenation, 45 RenderingStatsInstrumentation* stats_instrumenation,
46 int layer_id); 46 int layer_id);
47 47
48 virtual scoped_ptr<LayerUpdater::Resource> CreateResource( 48 virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
49 PrioritizedResourceManager* manager) OVERRIDE; 49 PrioritizedResourceManager* manager) OVERRIDE;
50 virtual void PrepareToUpdate(const gfx::Rect& content_rect, 50 virtual void PrepareToUpdate(const gfx::Rect& content_rect,
51 gfx::Size tile_size, 51 const gfx::Size& tile_size,
52 float contents_width_scale, 52 float contents_width_scale,
53 float contents_height_scale, 53 float contents_height_scale,
54 gfx::Rect* resulting_opaque_rect) OVERRIDE; 54 gfx::Rect* resulting_opaque_rect) OVERRIDE;
55 void UpdateTexture(ResourceUpdateQueue* queue, 55 void UpdateTexture(ResourceUpdateQueue* queue,
56 PrioritizedResource* resource, 56 PrioritizedResource* resource,
57 const gfx::Rect& source_rect, 57 const gfx::Rect& source_rect,
58 gfx::Vector2d dest_offset, 58 gfx::Vector2d dest_offset,
59 bool partial_update); 59 bool partial_update);
60 virtual void SetOpaque(bool opaque) OVERRIDE; 60 virtual void SetOpaque(bool opaque) OVERRIDE;
61 virtual void ReduceMemoryUsage() OVERRIDE; 61 virtual void ReduceMemoryUsage() OVERRIDE;
(...skipping 10 matching lines...) Expand all
72 gfx::Size canvas_size_; 72 gfx::Size canvas_size_;
73 bool opaque_; 73 bool opaque_;
74 74
75 private: 75 private:
76 DISALLOW_COPY_AND_ASSIGN(BitmapContentLayerUpdater); 76 DISALLOW_COPY_AND_ASSIGN(BitmapContentLayerUpdater);
77 }; 77 };
78 78
79 } // namespace cc 79 } // namespace cc
80 80
81 #endif // CC_RESOURCES_BITMAP_CONTENT_LAYER_UPDATER_H_ 81 #endif // CC_RESOURCES_BITMAP_CONTENT_LAYER_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/quads/tile_draw_quad.cc ('k') | cc/resources/bitmap_content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698