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

Side by Side Diff: cc/blink/web_external_bitmap_impl.h

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 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
« no previous file with comments | « cc/blink/web_display_item_list_impl.cc ('k') | cc/blink/web_external_bitmap_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BLINK_WEB_EXTERNAL_BITMAP_IMPL_H_ 5 #ifndef CC_BLINK_WEB_EXTERNAL_BITMAP_IMPL_H_
6 #define CC_BLINK_WEB_EXTERNAL_BITMAP_IMPL_H_ 6 #define CC_BLINK_WEB_EXTERNAL_BITMAP_IMPL_H_
7 7
8 #include <stdint.h>
9
8 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
10 #include "cc/blink/cc_blink_export.h" 13 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebExternalBitmap.h" 14 #include "third_party/WebKit/public/platform/WebExternalBitmap.h"
12 15
13 namespace cc { 16 namespace cc {
14 class SharedBitmap; 17 class SharedBitmap;
15 } 18 }
16 19
17 namespace cc_blink { 20 namespace cc_blink {
18 21
19 typedef scoped_ptr<cc::SharedBitmap>(*SharedBitmapAllocationFunction)( 22 typedef scoped_ptr<cc::SharedBitmap>(*SharedBitmapAllocationFunction)(
20 const gfx::Size& size); 23 const gfx::Size& size);
21 24
22 // Sets the function that this will use to allocate shared memory. 25 // Sets the function that this will use to allocate shared memory.
23 CC_BLINK_EXPORT void SetSharedBitmapAllocationFunction( 26 CC_BLINK_EXPORT void SetSharedBitmapAllocationFunction(
24 SharedBitmapAllocationFunction); 27 SharedBitmapAllocationFunction);
25 28
26 class WebExternalBitmapImpl : public blink::WebExternalBitmap { 29 class WebExternalBitmapImpl : public blink::WebExternalBitmap {
27 public: 30 public:
28 CC_BLINK_EXPORT explicit WebExternalBitmapImpl(); 31 CC_BLINK_EXPORT explicit WebExternalBitmapImpl();
29 virtual ~WebExternalBitmapImpl(); 32 virtual ~WebExternalBitmapImpl();
30 33
31 // blink::WebExternalBitmap implementation. 34 // blink::WebExternalBitmap implementation.
32 blink::WebSize size() override; 35 blink::WebSize size() override;
33 void setSize(blink::WebSize size) override; 36 void setSize(blink::WebSize size) override;
34 uint8* pixels() override; 37 uint8_t* pixels() override;
35 38
36 cc::SharedBitmap* shared_bitmap() { return shared_bitmap_.get(); } 39 cc::SharedBitmap* shared_bitmap() { return shared_bitmap_.get(); }
37 40
38 private: 41 private:
39 scoped_ptr<cc::SharedBitmap> shared_bitmap_; 42 scoped_ptr<cc::SharedBitmap> shared_bitmap_;
40 blink::WebSize size_; 43 blink::WebSize size_;
41 44
42 DISALLOW_COPY_AND_ASSIGN(WebExternalBitmapImpl); 45 DISALLOW_COPY_AND_ASSIGN(WebExternalBitmapImpl);
43 }; 46 };
44 47
45 } // namespace cc_blink 48 } // namespace cc_blink
46 49
47 #endif // CC_BLINK_WEB_EXTERNAL_BITMAP_IMPL_H_ 50 #endif // CC_BLINK_WEB_EXTERNAL_BITMAP_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/web_display_item_list_impl.cc ('k') | cc/blink/web_external_bitmap_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698