OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "content/renderer/pepper/pepper_platform_image_2d_impl.h" | 5 #include "content/renderer/pepper/pepper_platform_image_2d_impl.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
9 #include "content/renderer/render_thread_impl.h" | 9 #include "content/renderer/render_thread_impl.h" |
10 #include "ui/gfx/surface/transport_dib.h" | 10 #include "ui/surface/transport_dib.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 PepperPlatformImage2DImpl::PepperPlatformImage2DImpl(int width, | 14 PepperPlatformImage2DImpl::PepperPlatformImage2DImpl(int width, |
15 int height, | 15 int height, |
16 TransportDIB* dib) | 16 TransportDIB* dib) |
17 : width_(width), | 17 : width_(width), |
18 height_(height), | 18 height_(height), |
19 dib_(dib) { | 19 dib_(dib) { |
20 } | 20 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 #elif defined(OS_POSIX) | 77 #elif defined(OS_POSIX) |
78 return static_cast<intptr_t>(dib_->handle()); | 78 return static_cast<intptr_t>(dib_->handle()); |
79 #endif | 79 #endif |
80 } | 80 } |
81 | 81 |
82 TransportDIB* PepperPlatformImage2DImpl::GetTransportDIB() const { | 82 TransportDIB* PepperPlatformImage2DImpl::GetTransportDIB() const { |
83 return dib_.get(); | 83 return dib_.get(); |
84 } | 84 } |
85 | 85 |
86 } // namespace content | 86 } // namespace content |
OLD | NEW |