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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: fix obsolete test Created 4 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
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 #ifndef StaticBitmapImage_h 5 #ifndef StaticBitmapImage_h
6 #define StaticBitmapImage_h 6 #define StaticBitmapImage_h
7 7
8 #include "gpu/command_buffer/common/mailbox.h" 8 #include "gpu/command_buffer/common/mailbox.h"
9 #include "gpu/command_buffer/common/sync_token.h" 9 #include "gpu/command_buffer/common/sync_token.h"
10 #include "platform/graphics/Image.h" 10 #include "platform/graphics/Image.h"
(...skipping 20 matching lines...) Expand all
31 RespectImageOrientationEnum, 31 RespectImageOrientationEnum,
32 ImageClampingMode) = 0; 32 ImageClampingMode) = 0;
33 33
34 // Methods have common implementation for all sub-classes 34 // Methods have common implementation for all sub-classes
35 bool currentFrameIsComplete() override { return true; } 35 bool currentFrameIsComplete() override { return true; }
36 void destroyDecodedData() {} 36 void destroyDecodedData() {}
37 37
38 // Methods that have a default implementation, and overrided by only one 38 // Methods that have a default implementation, and overrided by only one
39 // sub-class 39 // sub-class
40 virtual bool hasMailbox() { return false; } 40 virtual bool hasMailbox() { return false; }
41 virtual void transfer() {}
42 41
43 // Methods overrided by AcceleratedStaticBitmapImage only 42 // Methods overrided by AcceleratedStaticBitmapImage only
44 virtual void copyToTexture(WebGraphicsContext3DProvider*, 43 virtual void copyToTexture(WebGraphicsContext3DProvider*,
45 GLuint, 44 GLuint,
46 GLenum, 45 GLenum,
47 GLenum, 46 GLenum,
48 bool) { 47 bool) {
49 NOTREACHED(); 48 NOTREACHED();
50 } 49 }
51 virtual void ensureMailbox() { NOTREACHED(); } 50 virtual void ensureMailbox() { NOTREACHED(); }
(...skipping 26 matching lines...) Expand all
78 // info. They applied to both UnacceleratedStaticBitmapImage and 77 // info. They applied to both UnacceleratedStaticBitmapImage and
79 // AcceleratedStaticBitmapImage. To change these two properties, the call 78 // AcceleratedStaticBitmapImage. To change these two properties, the call
80 // site would have to call the API setOriginClean() and setPremultiplied(). 79 // site would have to call the API setOriginClean() and setPremultiplied().
81 bool m_isOriginClean = true; 80 bool m_isOriginClean = true;
82 bool m_isPremultiplied = true; 81 bool m_isPremultiplied = true;
83 }; 82 };
84 83
85 } // namespace blink 84 } // namespace blink
86 85
87 #endif 86 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698