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

Side by Side Diff: gpu/command_buffer/service/texture_definition.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo part of clang-format Created 4 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
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 #include "gpu/command_buffer/service/texture_definition.h" 5 #include "gpu/command_buffer/service/texture_definition.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <list> 9 #include <list>
10 #include <memory>
no sievers 2016/04/05 19:02:41 unused
Mostyn Bramley-Moore 2016/04/05 21:35:32 Removed.
10 11
11 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
12 #include "base/memory/linked_ptr.h" 13 #include "base/memory/linked_ptr.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "base/threading/thread_local.h" 15 #include "base/threading/thread_local.h"
16 // gl_stream_texture_image.h is included to work around crbug.com/595189, a 16 // gl_stream_texture_image.h is included to work around crbug.com/595189, a
17 // compiler bug in VS 2015 Update 2 RC. 17 // compiler bug in VS 2015 Update 2 RC.
18 #include "gpu/command_buffer/service/gl_stream_texture_image.h" 18 #include "gpu/command_buffer/service/gl_stream_texture_image.h"
19 #include "gpu/command_buffer/service/texture_manager.h" 19 #include "gpu/command_buffer/service/texture_manager.h"
20 #include "ui/gl/gl_image.h" 20 #include "ui/gl/gl_image.h"
21 #include "ui/gl/gl_implementation.h" 21 #include "ui/gl/gl_implementation.h"
22 #include "ui/gl/scoped_binders.h" 22 #include "ui/gl/scoped_binders.h"
23 23
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 return true; 466 return true;
467 } 467 }
468 468
469 bool TextureDefinition::SafeToRenderFrom() const { 469 bool TextureDefinition::SafeToRenderFrom() const {
470 return level_info_.cleared_rect.Contains( 470 return level_info_.cleared_rect.Contains(
471 gfx::Rect(level_info_.width, level_info_.height)); 471 gfx::Rect(level_info_.width, level_info_.height));
472 } 472 }
473 473
474 } // namespace gles2 474 } // namespace gles2
475 } // namespace gpu 475 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698