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

Side by Side Diff: webkit/compositor_bindings/web_external_texture_layer_impl.cc

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScaleAsVector 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
« no previous file with comments | « cc/video_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_impl.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "config.h" 5 #include "config.h"
6 #include "web_external_texture_layer_impl.h" 6 #include "web_external_texture_layer_impl.h"
7 7
8 #include "cc/resource_update_queue.h" 8 #include "cc/resource_update_queue.h"
9 #include "cc/texture_layer.h" 9 #include "cc/texture_layer.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL ayerClient.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL ayerClient.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 static_cast<TextureLayer*>(m_layer->layer())->setTextureId(id); 49 static_cast<TextureLayer*>(m_layer->layer())->setTextureId(id);
50 } 50 }
51 51
52 void WebExternalTextureLayerImpl::setFlipped(bool flipped) 52 void WebExternalTextureLayerImpl::setFlipped(bool flipped)
53 { 53 {
54 static_cast<TextureLayer*>(m_layer->layer())->setFlipped(flipped); 54 static_cast<TextureLayer*>(m_layer->layer())->setFlipped(flipped);
55 } 55 }
56 56
57 void WebExternalTextureLayerImpl::setUVRect(const WebFloatRect& rect) 57 void WebExternalTextureLayerImpl::setUVRect(const WebFloatRect& rect)
58 { 58 {
59 static_cast<TextureLayer*>(m_layer->layer())->setUVRect(convert(rect)); 59 static_cast<TextureLayer*>(m_layer->layer())->setUVRect(rect);
60 } 60 }
61 61
62 void WebExternalTextureLayerImpl::setOpaque(bool opaque) 62 void WebExternalTextureLayerImpl::setOpaque(bool opaque)
63 { 63 {
64 static_cast<TextureLayer*>(m_layer->layer())->setContentsOpaque(opaque); 64 static_cast<TextureLayer*>(m_layer->layer())->setContentsOpaque(opaque);
65 } 65 }
66 66
67 void WebExternalTextureLayerImpl::setPremultipliedAlpha(bool premultipliedAlpha) 67 void WebExternalTextureLayerImpl::setPremultipliedAlpha(bool premultipliedAlpha)
68 { 68 {
69 static_cast<TextureLayer*>(m_layer->layer())->setPremultipliedAlpha(premulti pliedAlpha); 69 static_cast<TextureLayer*>(m_layer->layer())->setPremultipliedAlpha(premulti pliedAlpha);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 return m_client->prepareTexture(updaterImpl); 103 return m_client->prepareTexture(updaterImpl);
104 } 104 }
105 105
106 WebGraphicsContext3D* WebExternalTextureLayerImpl::context() 106 WebGraphicsContext3D* WebExternalTextureLayerImpl::context()
107 { 107 {
108 ASSERT(m_client); 108 ASSERT(m_client);
109 return m_client->context(); 109 return m_client->context();
110 } 110 }
111 111
112 } // namespace WebKit 112 } // namespace WebKit
OLDNEW
« no previous file with comments | « cc/video_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698