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

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

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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/transferable_resource.cc ('k') | cc/resources/video_resource_updater.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_RESOURCE_BITMAP_H_ 5 #ifndef CC_RESOURCES_UI_RESOURCE_BITMAP_H_
6 #define CC_RESOURCES_UI_RESOURCE_BITMAP_H_ 6 #define CC_RESOURCES_UI_RESOURCE_BITMAP_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "skia/ext/refptr.h" 11 #include "skia/ext/refptr.h"
12 #include "third_party/skia/include/core/SkPixelRef.h" 12 #include "third_party/skia/include/core/SkPixelRef.h"
13 #include "third_party/skia/include/core/SkTypes.h" 13 #include "ui/gfx/geometry/size.h"
14 #include "ui/gfx/size.h"
15 14
16 class SkBitmap; 15 class SkBitmap;
17 16
18 namespace cc { 17 namespace cc {
19 18
20 class ETC1PixelRef; 19 class ETC1PixelRef;
21 20
22 // A bitmap class that contains a ref-counted reference to a SkPixelRef that 21 // A bitmap class that contains a ref-counted reference to a SkPixelRef that
23 // holds the content of the bitmap (cannot use SkBitmap because of ETC1). 22 // holds the content of the bitmap (cannot use SkBitmap because of ETC1).
24 // Thread-safety (by ways of SkPixelRef) ensures that both main and impl threads 23 // Thread-safety (by ways of SkPixelRef) ensures that both main and impl threads
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ~AutoLockUIResourceBitmap(); 69 ~AutoLockUIResourceBitmap();
71 const uint8_t* GetPixels() const; 70 const uint8_t* GetPixels() const;
72 71
73 private: 72 private:
74 const UIResourceBitmap& bitmap_; 73 const UIResourceBitmap& bitmap_;
75 }; 74 };
76 75
77 } // namespace cc 76 } // namespace cc
78 77
79 #endif // CC_RESOURCES_UI_RESOURCE_BITMAP_H_ 78 #endif // CC_RESOURCES_UI_RESOURCE_BITMAP_H_
OLDNEW
« no previous file with comments | « cc/resources/transferable_resource.cc ('k') | cc/resources/video_resource_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698