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

Side by Side Diff: content/renderer/pepper/pepper_platform_image_2d_impl.cc

Issue 9959037: Put the Pepper stuff in the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
OLDNEW
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/gfx/surface/transport_dib.h"
11 11
12 namespace content {
13
12 PepperPlatformImage2DImpl::PepperPlatformImage2DImpl(int width, 14 PepperPlatformImage2DImpl::PepperPlatformImage2DImpl(int width,
13 int height, 15 int height,
14 TransportDIB* dib) 16 TransportDIB* dib)
15 : width_(width), 17 : width_(width),
16 height_(height), 18 height_(height),
17 dib_(dib) { 19 dib_(dib) {
18 } 20 }
19 21
20 // On Mac, we have to tell the browser to free the transport DIB. 22 // On Mac, we have to tell the browser to free the transport DIB.
21 PepperPlatformImage2DImpl::~PepperPlatformImage2DImpl() { 23 PepperPlatformImage2DImpl::~PepperPlatformImage2DImpl() {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 #elif defined(OS_MACOSX) || defined(OS_ANDROID) 75 #elif defined(OS_MACOSX) || defined(OS_ANDROID)
74 return static_cast<intptr_t>(dib_->handle().fd); 76 return static_cast<intptr_t>(dib_->handle().fd);
75 #elif defined(OS_POSIX) 77 #elif defined(OS_POSIX)
76 return static_cast<intptr_t>(dib_->handle()); 78 return static_cast<intptr_t>(dib_->handle());
77 #endif 79 #endif
78 } 80 }
79 81
80 TransportDIB* PepperPlatformImage2DImpl::GetTransportDIB() const { 82 TransportDIB* PepperPlatformImage2DImpl::GetTransportDIB() const {
81 return dib_.get(); 83 return dib_.get();
82 } 84 }
85
86 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_image_2d_impl.h ('k') | content/renderer/pepper/pepper_platform_video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698