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

Side by Side Diff: ui/surface/accelerated_surface_mac.cc

Issue 10351002: ui: Move surface/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gpu DEPS Created 8 years, 7 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
« no previous file with comments | « ui/surface/accelerated_surface_mac.h ('k') | ui/surface/accelerated_surface_win.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 (c) 2011 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 "ui/gfx/surface/accelerated_surface_mac.h" 5 #include "ui/surface/accelerated_surface_mac.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/scoped_cftyperef.h" 8 #include "base/mac/scoped_cftyperef.h"
9 #include "ui/gfx/gl/gl_bindings.h" 9 #include "ui/gfx/gl/gl_bindings.h"
10 #include "ui/gfx/gl/gl_context.h" 10 #include "ui/gfx/gl/gl_context.h"
11 #include "ui/gfx/gl/gl_implementation.h" 11 #include "ui/gfx/gl/gl_implementation.h"
12 #include "ui/gfx/gl/gl_surface.h" 12 #include "ui/gfx/gl/gl_surface.h"
13 #include "ui/gfx/gl/scoped_make_current.h" 13 #include "ui/gfx/gl/scoped_make_current.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 #include "ui/gfx/surface/io_surface_support_mac.h" 15 #include "ui/surface/io_surface_support_mac.h"
16 16
17 AcceleratedSurface::AcceleratedSurface() 17 AcceleratedSurface::AcceleratedSurface()
18 : io_surface_id_(0), 18 : io_surface_id_(0),
19 allocate_fbo_(false), 19 allocate_fbo_(false),
20 texture_(0), 20 texture_(0),
21 fbo_(0) { 21 fbo_(0) {
22 } 22 }
23 23
24 AcceleratedSurface::~AcceleratedSurface() {} 24 AcceleratedSurface::~AcceleratedSurface() {}
25 25
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 } 354 }
355 return transport_dib_->handle(); 355 return transport_dib_->handle();
356 } 356 }
357 357
358 void AcceleratedSurface::SetTransportDIBAllocAndFree( 358 void AcceleratedSurface::SetTransportDIBAllocAndFree(
359 const base::Callback<void(size_t, TransportDIB::Handle*)>& allocator, 359 const base::Callback<void(size_t, TransportDIB::Handle*)>& allocator,
360 const base::Callback<void(TransportDIB::Id)>& deallocator) { 360 const base::Callback<void(TransportDIB::Id)>& deallocator) {
361 dib_alloc_callback_ = allocator; 361 dib_alloc_callback_ = allocator;
362 dib_free_callback_ = deallocator; 362 dib_free_callback_ = deallocator;
363 } 363 }
OLDNEW
« no previous file with comments | « ui/surface/accelerated_surface_mac.h ('k') | ui/surface/accelerated_surface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698