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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Poster image, as defined in the <video> element. 118 // Poster image, as defined in the <video> element.
119 void setPoster(const blink::WebURL& poster) override; 119 void setPoster(const blink::WebURL& poster) override;
120 120
121 // Methods for painting. 121 // Methods for painting.
122 // FIXME: This path "only works" on Android. It is a workaround for the 122 // FIXME: This path "only works" on Android. It is a workaround for the
123 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture 123 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture
124 // internally. It should be removed and replaced by the normal paint path. 124 // internally. It should be removed and replaced by the normal paint path.
125 // https://code.google.com/p/skia/issues/detail?id=1189 125 // https://code.google.com/p/skia/issues/detail?id=1189
126 void paint(blink::WebCanvas* canvas, 126 void paint(blink::WebCanvas* canvas,
127 const blink::WebRect& rect, 127 const blink::WebRect& rect,
128 SkPaint&) override; 128 cc::PaintFlags&) override;
129 129
130 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl, 130 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl,
131 unsigned int texture, 131 unsigned int texture,
132 bool premultiply_alpha, 132 bool premultiply_alpha,
133 bool flip_y) override; 133 bool flip_y) override;
134 134
135 // True if the loaded media has a playable video/audio track. 135 // True if the loaded media has a playable video/audio track.
136 bool hasVideo() const override; 136 bool hasVideo() const override;
137 bool hasAudio() const override; 137 bool hasAudio() const override;
138 138
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 431
432 // NOTE: Weak pointers must be invalidated before all other member variables. 432 // NOTE: Weak pointers must be invalidated before all other member variables.
433 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 433 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
434 434
435 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 435 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
436 }; 436 };
437 437
438 } // namespace content 438 } // namespace content
439 439
440 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 440 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698