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

Side by Side Diff: content/browser/renderer_host/accelerated_surface_container_mac.cc

Issue 11343017: Move remaining files in content\browser\renderer_host to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 1 month 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/browser/renderer_host/accelerated_surface_container_mac.h" 5 #include "content/browser/renderer_host/accelerated_surface_container_mac.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma c.h" 8 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma c.h"
9 #include "ui/surface/io_surface_support_mac.h" 9 #include "ui/surface/io_surface_support_mac.h"
10 #include "webkit/plugins/npapi/webplugin.h" 10 #include "webkit/plugins/npapi/webplugin.h"
11 11
12 namespace content {
13
12 AcceleratedSurfaceContainerMac::AcceleratedSurfaceContainerMac( 14 AcceleratedSurfaceContainerMac::AcceleratedSurfaceContainerMac(
13 AcceleratedSurfaceContainerManagerMac* manager, 15 AcceleratedSurfaceContainerManagerMac* manager,
14 bool opaque) 16 bool opaque)
15 : manager_(manager), 17 : manager_(manager),
16 opaque_(opaque), 18 opaque_(opaque),
17 surface_handle_(0), 19 surface_handle_(0),
18 width_(0), 20 width_(0),
19 height_(0), 21 height_(0),
20 texture_(0), 22 texture_(0),
21 texture_needs_upload_(true), 23 texture_needs_upload_(true),
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 surface_.reset(surface); 255 surface_.reset(surface);
254 surface_handle_ = surface_handle; 256 surface_handle_ = surface_handle;
255 surface_width_ = io_surface_support->IOSurfaceGetWidth(surface_); 257 surface_width_ = io_surface_support->IOSurfaceGetWidth(surface_);
256 surface_height_ = io_surface_support->IOSurfaceGetHeight(surface_); 258 surface_height_ = io_surface_support->IOSurfaceGetHeight(surface_);
257 EnqueueTextureForDeletion(); 259 EnqueueTextureForDeletion();
258 } 260 }
259 } 261 }
260 } 262 }
261 was_painted_to_ = true; 263 was_painted_to_ = true;
262 } 264 }
265
266 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698