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

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

Issue 5831706594508800: cc: Cleanup Layer::SetNeedsDisplayInRect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « cc/layers/nine_patch_layer.cc ('k') | cc/resources/image_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 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_IMAGE_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_IMAGE_LAYER_UPDATER_H_
6 #define CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_IMAGE_LAYER_UPDATER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/resources/layer_updater.h" 9 #include "cc/resources/layer_updater.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 25 matching lines...) Expand all
36 36
37 virtual scoped_ptr<LayerUpdater::Resource> CreateResource( 37 virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
38 PrioritizedResourceManager*) OVERRIDE; 38 PrioritizedResourceManager*) OVERRIDE;
39 39
40 void UpdateTexture(ResourceUpdateQueue* queue, 40 void UpdateTexture(ResourceUpdateQueue* queue,
41 PrioritizedResource* texture, 41 PrioritizedResource* texture,
42 gfx::Rect source_rect, 42 gfx::Rect source_rect,
43 gfx::Vector2d dest_offset, 43 gfx::Vector2d dest_offset,
44 bool partial_update); 44 bool partial_update);
45 45
46 void set_bitmap(const SkBitmap& bitmap) { bitmap_ = bitmap; } 46 void SetBitmap(const SkBitmap& bitmap);
47 bool UsingBitmap(const SkBitmap& bitmap) const;
47 48
48 private: 49 private:
49 ImageLayerUpdater() {} 50 ImageLayerUpdater() {}
50 virtual ~ImageLayerUpdater() {} 51 virtual ~ImageLayerUpdater() {}
51 52
52 SkBitmap bitmap_; 53 SkBitmap bitmap_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(ImageLayerUpdater); 55 DISALLOW_COPY_AND_ASSIGN(ImageLayerUpdater);
55 }; 56 };
56 57
57 } // namespace cc 58 } // namespace cc
58 59
59 #endif // CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ 60 #endif // CC_RESOURCES_IMAGE_LAYER_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/layers/nine_patch_layer.cc ('k') | cc/resources/image_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698