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

Side by Side Diff: sky/viewer/compositor/texture_cache.cc

Issue 1213683004: Move //sky/compositor to //sky/viewer/compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/viewer/compositor/texture_cache.h ('k') | sky/viewer/document_view.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "sky/compositor/texture_cache.h" 5 #include "sky/viewer/compositor/texture_cache.h"
6 6
7 #include "mojo/converters/geometry/geometry_type_converters.h" 7 #include "mojo/converters/geometry/geometry_type_converters.h"
8 #include "mojo/gpu/gl_texture.h" 8 #include "mojo/gpu/gl_texture.h"
9 9
10 namespace sky { 10 namespace sky {
11 11
12 TextureCache::TextureCache() { 12 TextureCache::TextureCache() {
13 } 13 }
14 14
15 TextureCache::~TextureCache() { 15 TextureCache::~TextureCache() {
(...skipping 12 matching lines...) Expand all
28 return texture.Pass(); 28 return texture.Pass();
29 } 29 }
30 30
31 void TextureCache::PutTexture(scoped_ptr<mojo::GLTexture> texture) { 31 void TextureCache::PutTexture(scoped_ptr<mojo::GLTexture> texture) {
32 if (texture->size() != size_) 32 if (texture->size() != size_)
33 return; 33 return;
34 available_textures_.push_back(texture.release()); 34 available_textures_.push_back(texture.release());
35 } 35 }
36 36
37 } // namespace sky 37 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/compositor/texture_cache.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698